Need way to automatically show usage if required params are missing
See original GitHub issueCurrently if you specify help = true
in a parameter, exceptions are suppressed. However, you then have to manually check for required parameters not being set.
It would be great if there were a way to prevent exceptions from being thrown on missing required parameters, but print the usage text instead. Maybe in addition to adding help = true
to a help parameter, you could also specify usage = true
, and if a parameter is missing, even if the help option was not given on the commandline, JCommander could set the help parameter value to true, so that the usage text is displayed?
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
Missing required parameters in Route - laravel - Stack Overflow
Hi, I have problem with routes, it's always return "Missing Required Parameters".Please see my code below. Thank you! I think my route is...
Read more >Integromat - Error "Missing value of required parameter 'URL'."
I am trying to configure an Integromat scenario that takes the photos of each S123 and stores them on a Google Drive File...
Read more >Parameter Actions - Tableau Help
You can use parameter actions with reference lines, calculations, filters, and SQL queries, and to customize how you display data in your visualizations....
Read more >Check if Google Ads auto-tagging works - Analytics Help
If you don't see the gclid parameter appended to your URLs after the page is fully loaded, then it's likely that your website...
Read more >Fail-fast on missing required arguments in JavaScript using ...
JavaScript doesn't automatically throw an error if the argument for a required parameter is missing. Which means that it is possible for ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
How about adding the JCommander instance to the ParameterException?
– Cédric
On Fri, Mar 17, 2017 at 10:35 PM, Luke Hutchison notifications@github.com wrote:
Oops, my mistake. Fixed and deployed in 1.68.