Commit 5d520ec5 authored by Arnaud Blanchard's avatar Arnaud Blanchard

Fix option interpretatino when there is only one

parent 79f7a489
......@@ -120,9 +120,8 @@ blaar_display_help(){
}
#
blaar_parse_args(){
default_needed_indexes=''
#We say we need all default velue to remove them after when we read values
for ((i = 0; i < $blaar_options_nb; i++))
do
......@@ -162,7 +161,9 @@ blaar_parse_args(){
fi
done
#We test than 'default_needed_indexes' exists (not null) :- is to avoid error if default_needed_indexes is unbound .
if [ -n "${default_needed_indexes:-}" ]; then
#We set default values
for i in ${default_needed_indexes[@]}
do
......@@ -181,6 +182,7 @@ blaar_parse_args(){
shift
fi
done
fi
return 0
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment