diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-06-12 20:23:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 15:23:38 -0400 |
commit | 1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch) | |
tree | 12074b6d44736b11513d857e437f9e30a6bf65a4 /std/flags/mod.ts | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/flags/mod.ts')
-rw-r--r-- | std/flags/mod.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/std/flags/mod.ts b/std/flags/mod.ts index 5c8fcc0d9..a961e6c68 100644 --- a/std/flags/mod.ts +++ b/std/flags/mod.ts @@ -15,11 +15,10 @@ export interface ArgParsingOptions { * the result `['--']` with everything after the `--`. Here's an example: * * // $ deno run example.ts -- a arg1 - * const { args } = Deno; * import { parse } from "https://deno.land/std/flags/mod.ts"; - * console.dir(parse(args, { "--": false })); + * console.dir(parse(Deno.args, { "--": false })); * // output: { _: [ "a", "arg1" ] } - * console.dir(parse(args, { "--": true })); + * console.dir(parse(Deno.args, { "--": true })); * // output: { _: [], --: [ "a", "arg1" ] } * * Defaults to `false`. |