diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-08-26 13:49:54 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-08-26 13:49:54 +0200 |
commit | 4aa91a07309a66077274765751679f9e9f93190c (patch) | |
tree | 1644fe953c47c037502ff459e827df45c402ab2b /src/argparser.bash | |
parent | c fix (diff) | |
download | argparser-4aa91a07309a66077274765751679f9e9f93190c.tar.gz argparser-4aa91a07309a66077274765751679f9e9f93190c.tar.bz2 argparser-4aa91a07309a66077274765751679f9e9f93190c.tar.xz |
m bash
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/argparser.bash')
-rw-r--r-- | src/argparser.bash | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/argparser.bash b/src/argparser.bash index 6756cff..2c1e58e 100644 --- a/src/argparser.bash +++ b/src/argparser.bash @@ -284,9 +284,9 @@ function args_noop function args_stickless { if [ "${1::1}" = '-' ] || [ "${1::1}" = '+' ]; then - return 0 - else return 1 + else + return 0 fi } @@ -620,6 +620,7 @@ function args_parse nulqueue+=( 0 ) continue fi + fi if [ $tmpdashed = 1 ]; then args_files+=( "$arg" ) tmpdashed=0 |