Skip to content

Commit 51b6de1

Browse files
committed
chore(cli): only take version as CLI version if first arg
1 parent 472add7 commit 51b6de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def main():
172172
# otherwise it will cause circular import errors
173173
import gitlab.v4.cli
174174

175-
if "--version" in sys.argv:
175+
if "--version" == sys.argv[1]:
176176
print(gitlab.__version__)
177177
sys.exit(0)
178178

0 commit comments

Comments
 (0)