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

doc: make --no- boolean prefix easier to find in the docs #1338

Merged
merged 1 commit into from
May 5, 2019

Conversation

AndrewFinlay
Copy link
Contributor

@AndrewFinlay AndrewFinlay commented May 2, 2019

Hi all,

I bumped into #1307 while working on another yargs based project and found myself wondering what the --no-prefix did. I went to the yargs docs, found the api reference and tried searching in there but couldn't find anything. I ended up searching with github's project search to find what I was after.

So this change is quite simple, make mention of the --no boolean prefix on the api doc page and link to the existing doc under parsing tricks. Hopefully that should make it a little quicker to find.

In my experience, it took too much effort to quickly find an explanation of what `--no-` is doing in the docs.
This change should make it easier to find a description of the boolean negation shortcut by searching the api page.
@bcoe bcoe merged commit 843e939 into yargs:master May 5, 2019
@bcoe
Copy link
Member

bcoe commented May 5, 2019

@AndrewFinlay thank you 👍 very much appreciate the docs update.

@AndrewFinlay AndrewFinlay deleted the no-boolean branch May 6, 2019 03:21
jandockx pushed a commit to jandockx/yargs that referenced this pull request May 7, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants