mirror of
https://github.com/denoland/deno.git
synced 2025-07-29 16:13:54 +00:00
Remove default export from flags module (denoland/deno_std#38)
Original: e674f7575a
This commit is contained in:
parent
a31e44d1c8
commit
0b9ab1249b
17 changed files with 103 additions and 103 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue