diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-01-24 18:02:42 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-01-24 18:02:42 +0100 |
commit | ce201e6299a08fe29fe0e4af3d8b2a30f4f67b2c (patch) | |
tree | 414c8aa079b8d285c32ba00ea6ecd4c094b7c8ba /command_manager.py | |
parent | fa0a0f7f7bc95ef869aec822cc55af76946bed97 (diff) | |
download | clufter-ce201e6299a08fe29fe0e4af3d8b2a30f4f67b2c.tar.gz clufter-ce201e6299a08fe29fe0e4af3d8b2a30f4f67b2c.tar.xz clufter-ce201e6299a08fe29fe0e4af3d8b2a30f4f67b2c.zip |
Finalize basic command manager's responsibilities
...pushing the generic processing to be implemented further to the
command itself.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'command_manager.py')
-rw-r--r-- | command_manager.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/command_manager.py b/command_manager.py index dfd28f2..389c843 100644 --- a/command_manager.py +++ b/command_manager.py @@ -90,7 +90,10 @@ class CommandManager(PluginManager): )) print parser.format_customized_help(usage=usage) return ec - print opts, args # TODO + logging.getLogger().setLevel(opts.loglevel) + log.debug("Running command `{0}'; opts={1}, args={2}" + .format(cmd, opts.__dict__, args)) + ec = command(opts, args) except ClufterError as e: ec = EC.EXIT_FAILURE print e |