You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In gitlab/v4/cli.py, required and optional arguments are added to the argument parser:
if action_name == "create":
for x in mgr_cls._create_attrs.required:
sub_parser_action.add_argument(
f"--{x.replace('_', '-')}", required=True
)
for x in mgr_cls._create_attrs.optional:
sub_parser_action.add_argument(
f"--{x.replace('_', '-')}", required=False
)
Besides required and optional, the RequiredOptional class can also have an exclusive field, and many objects use this to list options not in required or optional. From gitlab/v4/objects/invitations.py:
Activity
Allow exclusive arguments as optional
fix(cli): allow exclusive arguments as optional
fix(cli): allow exclusive arguments as optional
fix(cli): allow exclusive arguments as optional
fix(cli): allow exclusive arguments as optional (#2770)