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
yargs 17: option not listed in help output when coerced #1909
Labels
Comments
gr2m
added a commit
to octoherd/cli
that referenced
this issue
Apr 8, 2021
bcoe
added a commit
that referenced
this issue
Apr 11, 2021
The trick we were using of .alias("foo", "foo") to "tell" yargs-parser about a key using coerce has a bug such that help output is broken. We can instead use .key (https://github.com/yargs/yargs-parser/blob/master/lib/yargs-parser.ts#L191) which is designed for exactly our purposes (telling yargs-parser a key exists, without setting attributes such as description). Fixes #1909
bcoe
added a commit
that referenced
this issue
Apr 11, 2021
The trick we were using of .alias("foo", "foo") to "tell" yargs-parser about a key using coerce has a bug such that help output is broken. We can instead use .key (https://github.com/yargs/yargs-parser/blob/master/lib/yargs-parser.ts#L191) which is designed for exactly our purposes (telling yargs-parser a key exists, without setting attributes such as description). Fixes #1909
bcoe
added a commit
that referenced
this issue
Apr 11, 2021
The trick we were using of .alias("foo", "foo") to "tell" yargs-parser about a key using coerce has a bug such that help output is broken. We can instead use .key (https://github.com/yargs/yargs-parser/blob/master/lib/yargs-parser.ts#L191) which is designed for exactly our purposes (telling yargs-parser a key exists, without setting attributes such as description). Fixes #1909
bcoe
added a commit
that referenced
this issue
Apr 11, 2021
The trick we were using of .alias("foo", "foo") to "tell" yargs-parser about a key using coerce has a bug such that help output is broken. We can instead use .key (https://github.com/yargs/yargs-parser/blob/master/lib/yargs-parser.ts#L191) which is designed for exactly our purposes (telling yargs-parser a key exists, without setting attributes such as description). Fixes #1909
@gr2m a fix is now published to |
This was referenced Nov 25, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Result with
yargs@17.0.0-candidate.10
Result with
yargs@16.2.0
Reproducible test case: https://runkit.com/gr2m/yargs-yargs-1909
The text was updated successfully, but these errors were encountered: