swagger-api / swagger-api/swagger-codegen
Unknown command line arguments throw an exception
Open
Nobody has claimed this yet.
Enhancement: General
General: Suggestion
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Shouldn't this display help (similar to that in the README)?
$ java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar --help
Exception in thread "main" io.airlift.airline.ParseArgumentsUnexpectedException: Found unexpected parameters: [--help]
at io.airlift.airline.Cli.validate(Cli.java:148)
at io.airlift.airline.Cli.parse(Cli.java:116)
at io.airlift.airline.Cli.parse(Cli.java:97)
at io.swagger.codegen.SwaggerCodegen.main(SwaggerCodegen.java:35)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the command shown in the issue and the entry point at SwaggerCodegen.java:35; compare its behavior with the CLI usage in the README. Confirm what happens for --help and other unknown arguments. Done means an unknown command-line argument displays help instead of throwing the shown ParseArgumentsUnexpectedException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100