Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion gitlab/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,14 @@ def main():
config_files = arg.config_file
gitlab_id = arg.gitlab
verbose = arg.verbose
action = arg.action

if hasattr(arg, "action"):
action = arg.action
else:
sys.stderr.write("error: an action is required\n\n")
parser.print_help()
sys.exit(1)

what = arg.what

# Remove CLI behavior-related args
Expand Down