Annotation Interface CmdArgument
Annotation for command line parsing.
This is a copy from
}.
invalid @link
{@link https://github.com/rjeschke/neetutils-base
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanSet totrueto set this as a catch-all argument.A description for this argument.booleanSet totrueif this is a switch.Long name for argument.charList item separator.Class<?> Class for List-type arguments.booleanSet tofalseto disable automatic default value printing for this argument.booleanSet totrueif this is a required argument.charShort name (character) for argument.
-
Element Details
-
l
String lLong name for argument. Default is 'none'. Either one or both ofl,sneed to be provided.- Default:
""
-
s
char sShort name (character) for argument. Default is 'none'. Either one or both ofl,sneed to be provided.- Default:
'\u0000'
-
desc
-
listSep
char listSepList item separator. Default is ','.- Default:
','
-
listType
Class<?> listTypeClass for List-type arguments. Default isString.class.- Default:
java.lang.String.class
-
isSwitch
boolean isSwitchSet totrueif this is a switch. Requires abooleanfield which gets set totruewhen this argument is provided.- Default:
false
-
required
boolean requiredSet totrueif this is a required argument.- Default:
false
-
catchAll
boolean catchAllSet totrueto set this as a catch-all argument. Requires aListfield and will parse all arguments following this switch into the list.- Default:
false
-
printDefault
boolean printDefaultSet tofalseto disable automatic default value printing for this argument.- Default:
true
-