diff options
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( |