diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-05-19 14:06:14 +1000 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2021-05-31 16:37:29 +0200 |
commit | c02af343426dd8f2e147775a8edc8af7541fbd80 (patch) | |
tree | 996f4eed9d67373688565f055f77962e006e19b1 /docs/getting_started/command_line_interface.md | |
parent | 0c40446bed093909c1f744233909b5044c1c60d8 (diff) |
docs: update getting started for clarity (#10694)
Co-authored-by: RobyCigar <69680330+RobyCigar@users.noreply.github.com>
Diffstat (limited to 'docs/getting_started/command_line_interface.md')
-rw-r--r-- | docs/getting_started/command_line_interface.md | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/getting_started/command_line_interface.md b/docs/getting_started/command_line_interface.md index 617278579..191c1e756 100644 --- a/docs/getting_started/command_line_interface.md +++ b/docs/getting_started/command_line_interface.md @@ -73,11 +73,9 @@ Some see it as unconventional that: However: -1. This is the most logical way of distinguishing between runtime flags and - script arguments. -2. This is the most ergonomic way of distinguishing between runtime flags and - script arguments. -3. This is, in fact, the same behaviour as that of any other popular runtime. +1. This is the most logical and ergonomic way of distinguishing between runtime + flags and script arguments. +2. This is, in fact, the same behaviour as that of any other popular runtime. - Try `node -c index.js` and `node index.js -c`. The first will only do a syntax check on `index.js` as per Node's `-c` flag. The second will _execute_ `index.js` with `-c` passed to `require("process").argv`. |