The modifiers are constants in the
enum. They modify the command line argument parser generated by the
specification. Currently there are only two modifiers:
Normally the command line parser automatically adds a
modifier prevents this.
This prevents the addition of any of the automatically generated text to option usage information: no marking of repeatability or restrictions and so forth.
This modifier is unlikely to be of any use outside unit testing. It
object to throw an error where it would otherwise call
. In unit testing this is useful for examining usage output and
confirming validation exceptions are thrown appropriately. It can be
useful as well if you want to wrap what is otherwise a command line
application in a service or some larger application. The error
messages and usage text which would normally be printed to STDERR will
instead be delivered as the message of the error thrown. This error
will be a
, so you will not be forced to catch it by the compiler.