Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf4fcf45

Browse files
author
Gauvain Pocentek
committed
[CLI] ignore empty arguments
Gitlab 8.15 doesn't appreciate arguments with None as value. This breaksthe python-gitlab CLI.Fixes#199
1 parent35c6bbb commitf4fcf45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎gitlab/cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,12 @@ def main():
511511
what=arg.what
512512

513513
# Remove CLI behavior-related args
514-
foritemin ("gitlab","config_file","verbose","what","action"):
514+
foritemin ("gitlab","config_file","verbose","what","action",
515+
"version"):
515516
args.pop(item)
516517

518+
args= {k:vfork,vinargs.items()ifvisnotNone}
519+
517520
cls=None
518521
try:
519522
cls=gitlab.__dict__[_what_to_cls(what)]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp