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

Bad help description for options with nil default value #81

Closed
Hejki opened this issue Nov 19, 2019 · 0 comments
Closed

Bad help description for options with nil default value #81

Hejki opened this issue Nov 19, 2019 · 0 comments

Comments

@Hejki
Copy link
Contributor

Hejki commented Nov 19, 2019

Commander shows bad help text for Option where type is Optional and default value is nil.

Example

Option<String?>("name", default: nil, description: "The name")

shows

Options:
    --name [default: ] - The name

instead of

Options:
    --name - The name
@kylef kylef closed this as completed in 4d05898 Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant