diff options
-rw-r--r-- | func/overlord/command.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/func/overlord/command.py b/func/overlord/command.py index 812ad8d..9c53ea7 100644 --- a/func/overlord/command.py +++ b/func/overlord/command.py @@ -227,6 +227,10 @@ class Command: return ret + # if we have args that we need to deal with, do it now + # before we start looking for subcommands + self.handleArguments(args) + # if we do have subcommands, defer to them try: command = args[0] @@ -265,6 +269,12 @@ class Command: """ pass + def handleArguments(self, arguments): + """ + Handle the parsed arguments. + """ + pass + def getRootCommand(self): """ Return the top-level command, which is typically the program. |