From 3591d3541eb9d79dd23de43995be0e8c05d83213 Mon Sep 17 00:00:00 2001 From: merakor Date: Sat, 31 Oct 2020 12:17:53 +0000 Subject: src: update parser definitions FossilOrigin-Name: 8f46944f81271ff851a5d21bfbaa21ad86f8cf120ef22bf8f9a64ecd3f339eb3 --- src/cpt-update | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/cpt-update') diff --git a/src/cpt-update b/src/cpt-update index 8143535..b3884e3 100755 --- a/src/cpt-update +++ b/src/cpt-update @@ -4,16 +4,15 @@ if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi parser_definition() { - setup REST -- "usage: ${0##*/} [options]" + setup REST help:usage -- "usage: ${0##*/} [options]" msg -- '' 'Options:' - flag download_only -d --download -- "Only download updatable packages" - flag CPT_FETCH -n --no-fetch on:0 off:0 init:="$CPT_FETCH" -- "Do not refresh the repositories" - disp :pkg_fetch -o --only-fetch -- "Only fetch repositories" + flag download_only -d --download -- "Only download updatable packages" + flag CPT_FETCH -n --no-fetch on:0 off:0 init:@export -- "Do not refresh the repositories" + disp :pkg_fetch -o --only-fetch -- "Only fetch repositories" global_options } -eval "$(getoptions parser_definition parse "$0")" -eval "$(getoptions_help parser_definition usage "$0")" +eval "$(getoptions parser_definition parse "$0")" parse "$@" eval set -- "$REST" -- cgit v1.2.3