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
Is it possible to allow the user the option to a skip an Argument?
Example command structure cli subcommand IntArg StringArg StringArg
Would it be possible to do something such as cli subcommand 1 "" "txt" ??
I ask this because the above example does not work, it is treating "" as non-existent and thus taking the second StringArg as the first one.
I understand that a possible solution would to implement custom code that would ignore some Arg Values to treat them as "skip", something like "-" for a string or -1 for an int, but nonetheless, I would like to ask for native functionality.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Is it possible to allow the user the option to a skip an Argument?
Example command structure
cli subcommand IntArg StringArg StringArg
Would it be possible to do something such as
cli subcommand 1 "" "txt"
??I ask this because the above example does not work, it is treating "" as non-existent and thus taking the second StringArg as the first one.
I understand that a possible solution would to implement custom code that would ignore some Arg Values to treat them as "skip", something like "-" for a string or -1 for an int, but nonetheless, I would like to ask for native functionality.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions