question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invoking LayrryLauncher with no args should print usage and quit

See original GitHub issue

Currently 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gunnarmorlingcommented, Feb 2, 2021

I also thought we discussed at some point to make --layers-config optional, defaulting to layers.yaml|toml in the current directory.

0reactions
github-actions[bot]commented, Oct 31, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found