0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

docs: update getting started for clarity (#10694)

Co-authored-by: RobyCigar <69680330+RobyCigar@users.noreply.github.com>
This commit is contained in:
Kitson Kelly 2021-05-19 14:06:14 +10:00 committed by GitHub
parent 7d79d86e55
commit 7cf674d411
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`.