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
yarn cli help "Usage" lines are wildly inconsistent #6386
Comments
Further,
|
Further still, it appears that the documentation is just plainly not complete for
Edit: Also, the option
|
Further, further still...
|
Thoughts on this @arcanis? Obviously this would be low on the priority list for the team in general, but if it's something that you and the rest feel is something that should be addressed, I can work on a PR. This specifically is holding back any progress on completion automation due to the issues described above causing test failures. |
Overall I'm not super satisfied with the state of the command line - we have an open issue to revamp it, but it's still waiting for someone to take the lead. |
@arcanis I like it. I'm definitely on board to help out. |
(I didn't forget about this.. Working on getting an update out over the next few days on the bash completions first then I'll jump in and get a PR going for this) -- I'll get the PR opened with minimal progress and tag you in it @arcanis just so I can be sure that the work I'm doing stays within the scope of your vision. |
Closing as all CLI help pages have been revamped in the v2 because we use a different CLI framework. |
Do you want to request a feature or report a bug? Little bit of both
What is the current behavior?
Hi there,
I'm the maintainer of a fairly popular bash completion repo for yarn.I'm in the process of writing some scripts to automate the process and test the output and, in my process of doing so, I noticed that there is a fairly widespread discrepancy in how the yarn commands are documented in the cli.
It appears as though yarn is sort of attempting to stick to docopt standards, but there are quite a few notable flaws.
[command]
implies that there is an optional first-level command literally calledcommand
. This should instead be the literal name of the first-level command, without the brackets.[flags]
implies that there is an optional second-level command literally calledflags
. The actual shorthand for this should be precisely[options]
(this actually agrees better with the cli anyway since you don't call flags "flags", you call them "options").[packages ...]
implies that you have an optional command literally calledpackages
that can be repeated one or more times. It should instead be[<package>...]
.What is the expected behavior?
I would recommend tailoring all of the usage statements to follow the docopt standard, similarly to how the commands marked
*
are above.I would be happy to help contribute these changes when time allows with your blessing.
Please mention your node.js, yarn and operating system version.
Node:
v10.10.0
Yarn:
v1.9.4
OS:
Linux archlinux 4.18.6-arch1-1-ARCH #1 SMP PREEMPT Wed Sep 5 11:54:09 UTC 2018 x86_64 GNU/Linux
Thanks for considering!
The text was updated successfully, but these errors were encountered: