diff options
author | Martin Chlumsky <martin.chlumsky@ubisoft.com> | 2019-11-16 11:47:45 -0500 |
---|---|---|
committer | Martin Chlumsky <martin.chlumsky@ubisoft.com> | 2019-12-16 21:09:05 -0500 |
commit | 973cb8b962e13280bcc8473905227cf351661bf0 (patch) | |
tree | 3032d8b85461411820b8dadca100ee01587d9541 /gitlab/cli.py | |
parent | 2a01326e8e02bbf418b3f4c49ffa60c735b107dc (diff) | |
download | gitlab-973cb8b962e13280bcc8473905227cf351661bf0.tar.gz |
feat: add autocompletion support
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r-- | gitlab/cli.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py index 26ea0c0..8fc30bc 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -172,6 +172,12 @@ def main(): # Now we build the entire set of subcommands and do the complete parsing parser = _get_parser(cli_module) + try: + import argcomplete + + argcomplete.autocomplete(parser) + except Exception: + pass args = parser.parse_args(sys.argv[1:]) config_files = args.config_file |