aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-install
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-10-05 11:05:46 +0000
committermerakor <cem@ckyln.com>2020-10-05 11:05:46 +0000
commit39af6dbdc87390fa44600482fe6ed21d220e4a93 (patch)
tree749309bf4dc544999c061e233827ee85cbfa1631 /src/cpt-install
parent9b99b0e1eed60a63d93f7225b61f845d6759a8a7 (diff)
downloadcpt-39af6dbdc87390fa44600482fe6ed21d220e4a93.tar.gz
cpt: add global options to the library.
FossilOrigin-Name: 31d397b6064679068ed32c337f8c74e7ab24c9b7b9fa44f55a8cc0f52ca3bcee
Diffstat (limited to 'src/cpt-install')
-rwxr-xr-xsrc/cpt-install4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cpt-install b/src/cpt-install
index 94058d8..082d9d1 100755
--- a/src/cpt-install
+++ b/src/cpt-install
@@ -7,9 +7,7 @@ parser_definition() {
setup REST -- "usage: ${0##*/} [pkg...]"
msg -- '' 'Options:'
flag CPT_FORCE -f --force init:="$CPT_FORCE" -- "Force installation"
- param CPT_ROOT --root init:="$CPT_ROOT" -- "Use an alternate root directory"
- disp :usage -h --help -- "Show this help message"
- disp :version -v --version -- "Print version information"
+ global_options
}
eval "$(getoptions parser_definition parse "$0")"