From d5ca1885ca71dfb7d562ae7aeef97f08f090ce52 Mon Sep 17 00:00:00 2001 From: boyska Date: Wed, 27 Jul 2011 10:52:26 +0200 Subject: [PATCH] [Optparsing] do a shift to delete subcommand --- src/tomb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tomb b/src/tomb index a8c4cc8..ba17259 100755 --- a/src/tomb +++ b/src/tomb @@ -1139,6 +1139,9 @@ main() { fi PARAM+=$arg done + #first parameter actually is the subcommand: delete it and shift + PARAM[1]=() + shift ### End parsing command-specific options ### Set global options (useless, but for code retro-compatibility)