Is there a way to disable positional arguments altogether ? #1095
Answered
by
phlptp
aphecetche
asked this question in
Q&A
-
By this I mean something like :
|
Beta Was this translation helpful? Give feedback.
Answered by
phlptp
Nov 25, 2024
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The first could be achieved by wrapping the
add_option
call and doing the check there or probably slightly less complicated would be using theget_options(filter)
method with a filter that selects options with theget_positional()
check. If that list is not empty throw an error. That could be done in a method that operates on an app and does the check.Curious what the use case for not allowing positionals in that manner is?