Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: config-help still uses -l instead of -g #442

Closed
jmini opened this issue Jul 3, 2018 · 0 comments · Fixed by #491
Closed

CLI: config-help still uses -l instead of -g #442

jmini opened this issue Jul 3, 2018 · 0 comments · Fixed by #491

Comments

@jmini
Copy link
Member

jmini commented Jul 3, 2018

With #57 the --lang (short: -l) option was deprecated and replaced with --generator-name (short: -g)

In the config-help command, this was not changed and is not not consistent.


java -jar openapi-generator-cli.jar config-help -g spring

Should be OK but returns:

Exception in thread "main" io.airlift.airline.ParseArgumentsUnexpectedException: Found unexpected parameters: [-g, spring]
	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)

Empty command:

java -jar openapi-generator-cli.jar config-help

Returns:

[error] Required option '-l' is missing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant