diff options
Diffstat (limited to 'src/cpt-search')
-rwxr-xr-x | src/cpt-search | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cpt-search b/src/cpt-search index f943aca..df27761 100755 --- a/src/cpt-search +++ b/src/cpt-search @@ -1,8 +1,6 @@ #!/bin/sh -ef # Search for a package -if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi - parser_definition() { setup REST help:usage -- "usage: ${0##*/} [pkg...]" msg -- '' 'Options:' @@ -12,10 +10,7 @@ parser_definition() { global_options } -eval "$(getoptions parser_definition parse "$0")" - -parse "$@" -eval set -- "$REST" +if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi # The 'all' variable is set by the option parser. # shellcheck disable=2154 |