Skip to content

Conversation

@gireeshpunathil
Copy link
Member

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@addaleax
Copy link
Member

I think the current text was intentional; reading from stdin is the default when no other file name is provided, and if stdin is a TTY we enter interactive mode?

@vsemozhetbyt
Copy link
Contributor

vsemozhetbyt commented Sep 22, 2018

It seems the "reading from stdin" is wider than "interactive mode" (it may be a command chain), so this is a note about a partial case, not the definition of "default", and the semicolon seems valid.

@gireeshpunathil
Copy link
MemberAuthor

ah! I see it now, thanks for the clarification.

@addaleax
Copy link
Member

@gireeshpunathil That doesn’t mean we can’t improve here … I agree that this is not immediately obvious. Maybe we could change it to something like default if no file name is provided; …?

@gireeshpunathil
Copy link
MemberAuthor

I reworded the help message for better readability, PTAL.

@gireeshpunathilgireeshpunathil changed the title lib: fix punctuation in help textlib: Improve readability of help text in node --helpSep 22, 2018
@gireeshpunathil
Copy link
MemberAuthor

@danbev
Copy link
Contributor

danbev commented Sep 25, 2018

@gireeshpunathil
Copy link
MemberAuthor

rebased and started a new CI: https://ci.nodejs.org/job/node-test-pull-request/17491/

@gireeshpunathil
Copy link
MemberAuthor

only one known failure under node-test-commit-linux - not ok 46 async-hooks/test-statwatcher # TODO : Fix flaky test, so good to land.

@gireeshpunathilgireeshpunathil added the cli Issues and PRs related to the Node.js command line interface. label Sep 28, 2018
modified the `-` CLI option help text for improved readability. PR-URL: nodejs#23016 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
@gireeshpunathilgireeshpunathil merged commit 0f78b9a into nodejs:masterSep 28, 2018
targos pushed a commit that referenced this pull request Sep 28, 2018
modified the `-` CLI option help text for improved readability. PR-URL: #23016 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
targos pushed a commit that referenced this pull request Oct 3, 2018
modified the `-` CLI option help text for improved readability. PR-URL: #23016 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
@targostargos mentioned this pull request Oct 7, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cliIssues and PRs related to the Node.js command line interface.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@gireeshpunathil@nodejs-github-bot@addaleax@vsemozhetbyt@danbev@jasnell@thefourtheye@lpinca@BridgeAR