From 6fe2988dd050c05b17556cacac4e283fbf5242a8 Mon Sep 17 00:00:00 2001 From: Hakan Fouren Date: Thu, 7 Mar 2019 00:48:51 +0800 Subject: Use sys.exit as in rest of code --- gitlab/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gitlab/cli.py') diff --git a/gitlab/cli.py b/gitlab/cli.py index 5ca4568..b573c7f 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -133,7 +133,7 @@ def _parse_value(v): def main(): if "--version" in sys.argv: print(gitlab.__version__) - exit(0) + sys.exit(0) parser = _get_base_parser(add_help=False) @@ -149,7 +149,7 @@ def main(): except gitlab.config.ConfigError as e: if "--help" in sys.argv or "-h" in sys.argv: parser.print_help() - exit(0) + sys.exit(0) sys.exit(e) cli_module = importlib.import_module('gitlab.v%s.cli' % config.api_version) -- cgit v1.2.1