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
It would be very useful to be able to have two types of arguments/flags/options:
Common to all invocations of the program, including all subcommands or no subcommands
Conflicting with any subcommands
Syntax proposal:
var p = newParser:
flag("-n", "--dryrun") # common
rootCommand:
arg("input") # can't be used with `frobnicate`command("frobnicate"):
flag("-b")
arg("subcommandInput")
The text was updated successfully, but these errors were encountered:
Note to self (or whoever does it) when doing this: this might be a good opportunity to add a default command option, too. So you can explicitly run ./prog foo -a but if foo is the default command ./prog -a is equivalent.
It would be very useful to be able to have two types of arguments/flags/options:
Syntax proposal:
The text was updated successfully, but these errors were encountered: