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:
parent
7d79d86e55
commit
7cf674d411
1 changed files with 3 additions and 5 deletions
|
@ -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`.
|
||||
|
|
Loading…
Add table
Reference in a new issue