I was using args4j the other day and suffered from the following phenomena. The default part is automatically generated.
-h (--help) : print usage message and exit (default: true)
-v (--version) : print version (default: false)
Looking at the API specification, it seems that the method withShowDefaults returns true by default, so I will pass false.
ParserProperties parserProps = ParserProperties.defaults().withShowDefaults(false);
-h (--help) : print usage message and exit
-v (--version) : print version
default is no longer displayed.
API specifications https://args4j.kohsuke.org/args4j/apidocs/org/kohsuke/args4j/ParserProperties.html
Recommended Posts