-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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: improve node.1 manual page #5497
Conversation
.\ Man syntax is somewhat obscure, but the important part is is that .<letter> | ||
.\ specifies <letter>'s syntax for that line, and \f<letter> specifies it for | ||
.\ the characters that follow. | ||
.\ See http://liw.fi/manpages/ for more info. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I should get a better link?
Imo it would be ideal if on on unix systems |
.I arguments | ||
] | ||
.B node | ||
[\fBdebug \fR|\fB \-\-\fR\fBdebug \fR|\fB \-\-debug-brk\fR] \fI... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@indutny How much of this should we list here? I'm not really sure how the debug options work. :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each one is different. And even debug
has multiple options:
$ node debug
Usage: node debug script.js
node debug <host>:<port>
node debug -p <pid>
overall nice changes. though i'm not sure about removal of the v8 flags. only b/c they have "always" been there. but also not sure how many would care if they left. |
In the man output, first line is showing up like so:
Notice there are double spaces between several of those words. |
@trevnorris blame |
This is also missing the debugger environment variables list. e.g.
|
Yup. Must be it. Resizing terminal gives different results. |
Generally LGTM |
I'm +1 on removing the v8 flags there, it's just one more place to synchronize them in and it already shows how to print them. LGTM. |
Updated. Should be about good to land. I've left out anything @benjamingr, @jasnell, @trevnorris ptal |
maybe cc @nodejs/documentation ? Although I think this is almost a bit out of the regular documentation domain. |
@jasnell Also this intentionally ignores |
+1 ... Yeah --security-revert is not something we want to encourage too
|
Anyone else able to review the updated version of this? |
Sorry, I read this yesterday and forgot to LGTM. LGTM. |
ba1b714
to
f4f52fa
Compare
Rebased to add |
f4f52fa
to
3bca5d3
Compare
Uses better troff formatting. Removes v8 options from the man page. Also edits `node -h` in node.cc slightly. PR-URL: nodejs#5497 Reviewed-By: James Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Landed in 3bca5d3 |
Nice Work 👏 |
Uses better troff formatting. Removes v8 options from the man page. Also edits `node -h` in node.cc slightly. PR-URL: nodejs#5497 Reviewed-By: James Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Actually landed at f9e6191 because I screwed something up |
@Fishrock123 is this applicable to LTS? |
hmm.. I can't imagine this breaking anyone but let's hold off on porting to v4 for now. |
This should land in LTS but you'll probably need to update to make sure no new options get accidentally added with it. I can do that if needed. |
oh.. heh, yeah, this one is good for LTS. For some reason I was thinking this was the other change you're looking at in terms of having |
@Fishrock123 probably best for you to port it. |
Uses better troff formatting. Removes v8 options from the man page. Also edits `node -h` in node.cc slightly. PR-URL: #5497 Reviewed-By: James Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Conflicts: doc/node.1
Uses better troff formatting. Removes v8 options from the man page. Also edits `node -h` in node.cc slightly. PR-URL: #5497 Reviewed-By: James Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Uses better troff formatting. Removes v8 options from the man page. Also edits `node -h` in node.cc slightly. PR-URL: #5497 Reviewed-By: James Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Pull Request check-list
Please make sure to review and check all of these items:
make lint
(ccplint)Affected core subsystem(s)
doc,src
Description of change
Edited the man page to use better troff formatting and cover some previously missing options.
Also removed the v8 options from the man page. They really bloat the man page, and don't even belong there. Use
--v8-options
to see them.