diff options
author | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2007-10-12 14:33:28 -0400 |
---|---|---|
committer | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2007-10-12 14:33:28 -0400 |
commit | b4b771c5aced0739eb7a875bf126d21dbdaff06b (patch) | |
tree | 7394a791d31e98b79f3be121976f90c9cdf59701 /func/overlord/command.py | |
parent | 7e20169c94df803759acb82f6813dc1a297b9fde (diff) | |
download | third_party-func-b4b771c5aced0739eb7a875bf126d21dbdaff06b.tar.gz third_party-func-b4b771c5aced0739eb7a875bf126d21dbdaff06b.tar.xz third_party-func-b4b771c5aced0739eb7a875bf126d21dbdaff06b.zip |
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
Diffstat (limited to 'func/overlord/command.py')
-rw-r--r-- | func/overlord/command.py | 8 |
1 files changed, 5 insertions, 3 deletions
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: |