Skip to content

Commit d4107a8

Browse files
author
Damien Nadé
committed
argsparse.sh: checking if expand_aliases and progcomp are enabled or perform exit
1 parent f7a8d94 commit d4107a8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

argsparse.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,7 @@ argsparse_allow_no_argument() {
10321032

10331033
if [[ ${ARGSPARSE_COMPLETION_MODE-} ]]
10341034
then
1035+
shopt progcomp expand_aliases >/dev/null || exit 1
10351036
alias argsparse_parse_options='return 0 2>/dev/null || : '
10361037
else
10371038
## @fn argsparse_parse_options()

0 commit comments

Comments
 (0)