[Optparsing] do a shift to delete subcommand

This commit is contained in:
boyska 2011-07-27 10:52:26 +02:00
parent 6495099344
commit d5ca1885ca

View File

@ -1139,6 +1139,9 @@ main() {
fi fi
PARAM+=$arg PARAM+=$arg
done done
#first parameter actually is the subcommand: delete it and shift
PARAM[1]=()
shift
### End parsing command-specific options ### End parsing command-specific options
### Set global options (useless, but for code retro-compatibility) ### Set global options (useless, but for code retro-compatibility)