Skip to content

Commit 2a4493c

Browse files
committed
chore(cli): expose custom arguments in current function
1 parent 4a6bd90 commit 2a4493c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gitlab/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def wrapped_f(*args: Any, **kwargs: Any) -> Any:
7979
action = custom_action or f.__name__.replace("_", "-")
8080
custom_actions[final_name][action] = (mandatory, optional, in_obj)
8181

82+
wrapped_f._custom_args = mandatory + optional
8283
return cast(__F, wrapped_f)
8384

8485
return wrap

0 commit comments

Comments
 (0)