summaryrefslogtreecommitdiff
path: root/std/examples/flags.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/examples/flags.ts')
-rw-r--r--std/examples/flags.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/std/examples/flags.ts b/std/examples/flags.ts
new file mode 100644
index 000000000..4625b8c96
--- /dev/null
+++ b/std/examples/flags.ts
@@ -0,0 +1,7 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+const { args } = Deno;
+import { parse } from "../flags/mod.ts";
+
+if (import.meta.main) {
+ console.dir(parse(args));
+}