diff options
author | Hakan Fouren <hakan@vilynx.com> | 2019-03-07 00:48:51 +0800 |
---|---|---|
committer | Hakan Fouren <hakan@vilynx.com> | 2019-03-07 00:48:51 +0800 |
commit | 6fe2988dd050c05b17556cacac4e283fbf5242a8 (patch) | |
tree | c9950176fa1ed0c7a220730919fe3637ae434894 /gitlab/cli.py | |
parent | a8caddcb1e193c5472f5521dee0e18b1af32c89b (diff) | |
download | gitlab-6fe2988dd050c05b17556cacac4e283fbf5242a8.tar.gz |
Use sys.exit as in rest of code
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r-- | gitlab/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |