aboutsummaryrefslogtreecommitdiffstats
path: root/src/argparser.bash
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-08-26 13:49:54 +0200
committerMattias Andrée <maandree@operamail.com>2013-08-26 13:49:54 +0200
commit4aa91a07309a66077274765751679f9e9f93190c (patch)
tree1644fe953c47c037502ff459e827df45c402ab2b /src/argparser.bash
parentc fix (diff)
downloadargparser-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.bash5
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