summaryrefslogtreecommitdiff
path: root/gitlab/cli.py
diff options
context:
space:
mode:
authorJohn Villalovos <john@sodarock.com>2022-05-09 14:53:32 -0700
committerGitHub <noreply@github.com>2022-05-09 23:53:32 +0200
commitd68cacfeda5599c62a593ecb9da2505c22326644 (patch)
tree470bc0939abf314928ea60d2ec258bf2ecc5ba42 /gitlab/cli.py
parent9e646451dcca837807691a69545df93a5c93fd18 (diff)
downloadgitlab-d68cacfeda5599c62a593ecb9da2505c22326644.tar.gz
fix(cli): changed default `allow_abbrev` value to fix arguments collision problem (#2013)
fix(cli): change default `allow_abbrev` value to fix argument collision
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r--gitlab/cli.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py
index f06f49d..cad6b6f 100644
--- a/gitlab/cli.py
+++ b/gitlab/cli.py
@@ -106,7 +106,9 @@ def cls_to_what(cls: RESTObject) -> str:
def _get_base_parser(add_help: bool = True) -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(
- add_help=add_help, description="GitLab API Command Line Interface"
+ add_help=add_help,
+ description="GitLab API Command Line Interface",
+ allow_abbrev=False,
)
parser.add_argument("--version", help="Display the version.", action="store_true")
parser.add_argument(