From f184332c09c851faac50f598d29ebe4426e05464 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sat, 9 May 2020 13:34:47 +0100 Subject: BREAKING(std): reorganization (#5087) * Prepend underscores to private modules * Remove collectUint8Arrays() It would be a misuse of Deno.iter()'s result. * Move std/_util/async.ts to std/async * Move std/util/sha*.ts to std/hash --- std/flags/mod.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'std/flags/mod.ts') diff --git a/std/flags/mod.ts b/std/flags/mod.ts index 0563dab61..e3680087d 100644 --- a/std/flags/mod.ts +++ b/std/flags/mod.ts @@ -14,16 +14,13 @@ export interface ArgParsingOptions { /** When `true`, populate the result `_` with everything before the `--` and * 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"; - * // options['--'] is now set to false * console.dir(parse(args, { "--": false })); - * // $ deno run example.ts -- a arg1 - * // output: { _: [ "example.ts", "a", "arg1" ] } - * // options['--'] is now set to true + * // output: { _: [ "a", "arg1" ] } * console.dir(parse(args, { "--": true })); - * // $ deno run example.ts -- a arg1 - * // output: { _: [ "example.ts" ], --: [ "a", "arg1" ] } + * // output: { _: [], --: [ "a", "arg1" ] } * * Defaults to `false`. */ -- cgit v1.2.3