diff options
Diffstat (limited to 'cliff/app.py')
-rw-r--r-- | cliff/app.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cliff/app.py b/cliff/app.py index 2e65b6f..52ccc1b 100644 --- a/cliff/app.py +++ b/cliff/app.py @@ -260,7 +260,10 @@ class App(object): try: subcommand = self.command_manager.find_command(argv) except ValueError as err: - LOG.error(err) + if self.options.debug: + LOG.exception(err) + else: + LOG.error(err) return 1 cmd_factory, cmd_name, sub_argv = subcommand cmd = cmd_factory(self, self.options) |