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
I couldn't find how to do repeatable arguments in the documentation, and I need something more complex than that.
How do I accept only pairs of strings? So any of these would be OK:
my_cli_app str1 str2
my_cli_app str1 str2 foo bar
my_cli_app str1 str2 foo bar a b c d e f
but not these:
my_cli_app
my_cli_app str1
my_cli_app str1 str2 foo
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
-
I couldn't find how to do repeatable arguments in the documentation, and I need something more complex than that.
How do I accept only pairs of strings? So any of these would be OK:
my_cli_app str1 str2
my_cli_app str1 str2 foo bar
my_cli_app str1 str2 foo bar a b c d e f
but not these:
my_cli_app
my_cli_app str1
my_cli_app str1 str2 foo
Beta Was this translation helpful? Give feedback.
All reactions