diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2018-12-21 19:02:52 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-12-21 13:02:52 -0500 |
commit | 0b9ab1249b4bc0a7ab34ee68ca9ea71d7cd7d2ff (patch) | |
tree | c1326825cf0fde6d58f255ee991012a158bcddf2 /examples/gist.ts | |
parent | a31e44d1c8a5843882b3d974827e857070fd17c1 (diff) |
Remove default export from flags module (denoland/deno_std#38)
Original: https://github.com/denoland/deno_std/commit/e674f7575a7a5a845d696416da2abae62525bc3e
Diffstat (limited to 'examples/gist.ts')
-rwxr-xr-x | examples/gist.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gist.ts b/examples/gist.ts index b0e9a033c..7b3d59f87 100755 --- a/examples/gist.ts +++ b/examples/gist.ts @@ -1,7 +1,7 @@ #!/usr/bin/env deno --allow-net --allow-env import { args, env, exit, readFile } from "deno"; -import parseArgs from "https://deno.land/x/flags/index.ts"; +import { parse } from "https://deno.land/x/flags/index.ts"; function pathBase(p: string): string { const parts = p.split("/"); @@ -16,7 +16,7 @@ async function main() { exit(1); } - const parsedArgs = parseArgs(args.slice(1)); + const parsedArgs = parse(args.slice(1)); if (parsedArgs._.length === 0) { console.error( |