Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/command.py @ 3:4d1cd60dd2a1
misc tweaks
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Mon, 05 Apr 2010 13:10:31 -0700 |
| parents | 979315ed0816 |
| children | 35dc297efa25 |
comparison
equal
deleted
inserted
replaced
| 2:fc0dabd2269f | 3:4d1cd60dd2a1 |
|---|---|
| 158 commandparser.error("Not enough arguments given") | 158 commandparser.error("Not enough arguments given") |
| 159 if len(command_args) != len(command['args']) and not command['varargs']: | 159 if len(command_args) != len(command['args']) and not command['varargs']: |
| 160 commandparser.error("Too many arguments given") | 160 commandparser.error("Too many arguments given") |
| 161 | 161 |
| 162 # invoke the command | 162 # invoke the command |
| 163 getattr(_object, name)(*command_args, **command_options.__dict__) | 163 print getattr(_object, name)(*command_args, **command_options.__dict__) |
| 164 | 164 |
