-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
avoid documenting examples related to: -h
& --help
#6153
Comments
+1 because |
I think we should only include it when it's not obvious. The cases I can think of where it would make sense:
|
I did some quick and dirty analysis. A very crude estimate: (tldr-root) $ rg ' \--help' | wc -l
122
(tldr-root) $ rg ' \-h' | wc -l
183 Should we start with a couple of examples and see how it goes ? |
I agree with @marchersimon's suggestions. Sounds like a good idea to review this, but on a case-by-case basis. |
Here's my opinion. Keep it, and let all future --help commands be used. However they should always be prioritised to be removed if a better example is available. There is no harm in having it, other than making the page a little longer (3 lines) |
Making the page a little longer can be problematic, since our goal is to provide as short documentation as possible. |
Most pages already go over the default terminal size for me. Its not like we document EVERY detail. Its just an easy thing to add, and could add something if someone doesn't know the --help/-h flag, if they are new to *nix |
I say don't actively go looking through all existing pages and removing it, but consider it on case-by-case basis as it comes up as to whether it adds any value. e.g. on the |
close? |
Yep .. if all are in agreement .. lets close this one :) |
As discussed in #6145 discussion.
Should we refrain from documenting the obvious
-h
&--help
examples ?The text was updated successfully, but these errors were encountered: