From 39af6dbdc87390fa44600482fe6ed21d220e4a93 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 5 Oct 2020 11:05:46 +0000 Subject: cpt: add global options to the library. FossilOrigin-Name: 31d397b6064679068ed32c337f8c74e7ab24c9b7b9fa44f55a8cc0f52ca3bcee --- src/cpt-build | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/cpt-build') diff --git a/src/cpt-build b/src/cpt-build index e872170..1b1e055 100755 --- a/src/cpt-build +++ b/src/cpt-build @@ -6,10 +6,8 @@ if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi parser_definition() { setup REST -- "usage: ${0##*/} [pkg...]" msg -- '' 'Options:' - flag CPT_PROMPT -y --no-prompt on:0 off:0 init:="$CPT_PROMPT" -- "Do not prompt for confirmation" flag CPT_TEST -t --test init:="$CPT_TEST" -- "Run tests (if it exists)" - disp :usage -h --help -- "Show this help message" - disp :version -v --version -- "Print version information" + global_options } eval "$(getoptions parser_definition parse "$0")" -- cgit v1.2.3