From b4b771c5aced0739eb7a875bf126d21dbdaff06b Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Fri, 12 Oct 2007 14:33:28 -0400 Subject: copyfile.py: dont need the parse call here command.py: move the parse args stuff to before we call subcommands func_command.py: include the copyfile classes so we can use them --- func/overlord/command.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'func/overlord/command.py') diff --git a/func/overlord/command.py b/func/overlord/command.py index 9c53ea7..7fb7de4 100644 --- a/func/overlord/command.py +++ b/func/overlord/command.py @@ -217,6 +217,11 @@ class Command: # command args = [args[1], args[0]] + + # if we have args that we need to deal with, do it now + # before we start looking for subcommands + self.handleArguments(args) + # if we don't have subcommands, defer to our do() method if not self.subCommands: ret = self.do(args) @@ -227,9 +232,6 @@ 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: -- cgit