swagger-api / swagger-api/swagger-codegen

swagger-codegen-cli should accept a standard way of invoking usage starting with "-" and "--" like "-h", "--help"

Open
#6,544 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: Codegen General: Suggestion
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

  • swagger-codegen version 2.2.3

It is not possible to use in Swagger Codegen a standard way of invoking usage starting with "-" and "--".
For instance it is a good way to see help:
java -jar swagger-codegen-cli.jar help
and it is not possible to use:
java -jar swagger-codegen-cli.jar --help or java -jar swagger-codegen-cli.jar -h

It could be developed or changed to works in a standard way.

Regards,
Julita Rozborska

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use swagger-codegen-cli.jar as the entry point and compare the existing help invocation with the requested -h and --help forms. Verify that both options display the same usage information as the help command, then check the relevant CLI tests or add coverage if the repository identifies them.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.