summaryrefslogtreecommitdiff
path: root/cliff/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'cliff/app.py')
-rw-r--r--cliff/app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cliff/app.py b/cliff/app.py
index a3a0657..8b8217c 100644
--- a/cliff/app.py
+++ b/cliff/app.py
@@ -400,6 +400,8 @@ class App(object):
cmd_parser = cmd.get_parser(full_name)
parsed_args = cmd_parser.parse_args(sub_argv)
result = cmd.run(parsed_args)
+ except help.HelpExit:
+ result = 0
except SystemExit as ex:
raise cmd2.exceptions.Cmd2ArgparseError from ex
except Exception as err: