I'd like to use exclusive choices with OPTIONS. It seems I can't do that currently. Example code follows below.
With the spec line app.Spec = "(--one | --two) [OPTIONS]", it is legal for the user to call main --one --two.
With the spec line app.Spec = "(--one | --two)", the user must choice between using --one or --two.
In this example, I'm looking for the latter, to force the user to specify --one OR --two and separately allow them to specific --recursive
I'd like to use exclusive choices with OPTIONS. It seems I can't do that currently. Example code follows below. With the spec line
app.Spec = "(--one | --two) [OPTIONS]"
, it is legal for the user to callmain --one --two
. With the spec lineapp.Spec = "(--one | --two)"
, the user must choice between using--one
or--two
.In this example, I'm looking for the latter, to force the user to specify
--one
OR--two
and separately allow them to specific--recursive