diff options
author | zjopy <33468089+zjopy@users.noreply.github.com> | 2020-05-07 13:48:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-07 13:48:48 +0200 |
commit | 761b7efb3b8a140caad12803619a2e8a535cc178 (patch) | |
tree | c046d2fe25453713284e1670f10ceae05bac2673 /std/flags/README.md | |
parent | 34ec3b225425cecdccf754fbc87f4a8f3728890d (diff) |
fix(docs): add missing "deno run" (#5126)
Diffstat (limited to 'std/flags/README.md')
-rw-r--r-- | std/flags/README.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/std/flags/README.md b/std/flags/README.md index 41692b619..e9764f913 100644 --- a/std/flags/README.md +++ b/std/flags/README.md @@ -12,12 +12,12 @@ console.dir(parse(args)); ``` ``` -$ deno example.ts -a beep -b boop +$ deno run example.ts -a beep -b boop { _: [], a: 'beep', b: 'boop' } ``` ``` -$ deno example.ts -x 3 -y 4 -n5 -abc --beep=boop foo bar baz +$ deno run example.ts -x 3 -y 4 -n5 -abc --beep=boop foo bar baz { _: [ 'foo', 'bar', 'baz' ], x: 3, y: 4, @@ -60,11 +60,11 @@ options can be: import { parse } from "https://deno.land/std/flags/mod.ts"; // options['--'] is now set to false console.dir(parse(args, { "--": false })); - // $ deno example.ts -- a arg1 + // $ deno run example.ts -- a arg1 // output: { _: [ "example.ts", "a", "arg1" ] } // options['--'] is now set to true console.dir(parse(args, { "--": true })); - // $ deno example.ts -- a arg1 + // $ deno run example.ts -- a arg1 // output: { _: [ "example.ts" ], --: [ "a", "arg1" ] } ``` - `options.unknown` - a function which is invoked with a command line parameter |