If an enum argument is present, for example in the form '--enumMappedCmdlineOption ENUM_VALUE --anythingElse1 --anythingElse2 -- --nonOptionArg1 --nonOptionArg2', the textual form of ENUM_VALUE will be the first element after the '--' option terminator returned by AnnotatedClass#nonOptionArguments().
Workaround is using '=' character to separate the enum mapped command line option and its value:
--enumMappedCmdlineOption=ENUM_VALUE
If an enum argument is present, for example in the form '--enumMappedCmdlineOption ENUM_VALUE --anythingElse1 --anythingElse2 -- --nonOptionArg1 --nonOptionArg2', the textual form of ENUM_VALUE will be the first element after the '--' option terminator returned by AnnotatedClass#nonOptionArguments().
Workaround is using '=' character to separate the enum mapped command line option and its value: