Invoking LayrryLauncher with no args should print usage and quit
See original GitHub issueCurrently it prints an exception and quits
Exception in thread "main" com.beust.jcommander.ParameterException: The following option is required: [--layers-config]
at com.beust.jcommander.JCommander.validateOptions(JCommander.java:388)
at com.beust.jcommander.JCommander.parse(JCommander.java:357)
at com.beust.jcommander.JCommander.parse(JCommander.java:335)
at org.moditect.layrry.launcher.LayrryLauncher.launch(LayrryLauncher.java:50)
at org.moditect.layrry.launcher.LayrryLauncher.main(LayrryLauncher.java:41)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How to make argparse print usage when no option is given to ...
What I want to do is to simply run the code: $ my code.py without any -h option whatsoever to print the usage....
Read more >Print Usage and Exit if Arguments are Not Provided - ShellHacks
The following script is using dig command to find the name server of a domain name. The domain name should be provided as...
Read more >argparse — Parser for command-line options, arguments and ...
In a script, parse_args() will typically be called with no arguments, ... --help is supplied at the command line, the ArgumentParser help will...
Read more >How To Use argparse to Write Command-Line Programs in ...
Consider, for example, the usage message aquarium.py prints if you provide invalid arguments on the command line. Try invoking aquarium.py with ...
Read more >A Simple Guide To Command Line Arguments With ArgParse
However, if it's not, you can install it using the follwing command: ... To add your arguments, use parser.add_argument() .
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
I also thought we discussed at some point to make --layers-config optional, defaulting to layers.yaml|toml in the current directory.
Released in v1.0.0.Alpha2 -> https://github.com/moditect/layrry/releases/tag/v1.0.0.Alpha2