summaryrefslogtreecommitdiff
path: root/flags
diff options
context:
space:
mode:
Diffstat (limited to 'flags')
-rw-r--r--flags/example.ts2
-rw-r--r--flags/mod.ts (renamed from flags/index.ts)0
-rwxr-xr-xflags/tests/all_bool.ts2
-rwxr-xr-xflags/tests/bool.ts2
-rwxr-xr-xflags/tests/dash.ts2
-rwxr-xr-xflags/tests/default_bool.ts2
-rwxr-xr-xflags/tests/dotted.ts2
-rwxr-xr-xflags/tests/kv_short.ts2
-rwxr-xr-xflags/tests/long.ts2
-rwxr-xr-xflags/tests/num.ts2
-rw-r--r--flags/tests/parse.ts2
-rwxr-xr-xflags/tests/short.ts2
-rwxr-xr-xflags/tests/stop_early.ts2
-rwxr-xr-xflags/tests/unknown.ts2
-rwxr-xr-xflags/tests/whitespace.ts2
15 files changed, 14 insertions, 14 deletions
diff --git a/flags/example.ts b/flags/example.ts
index 811aacd69..5aa0a5034 100644
--- a/flags/example.ts
+++ b/flags/example.ts
@@ -1,4 +1,4 @@
import { args } from "deno";
-import { parse } from "./index.ts";
+import { parse } from "./mod.ts";
console.dir(parse(args));
diff --git a/flags/index.ts b/flags/mod.ts
index 28a5c8eac..28a5c8eac 100644
--- a/flags/index.ts
+++ b/flags/mod.ts
diff --git a/flags/tests/all_bool.ts b/flags/tests/all_bool.ts
index 2e0bba4ce..07b12c292 100755
--- a/flags/tests/all_bool.ts
+++ b/flags/tests/all_bool.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
// flag boolean true (default all --args to boolean)
test(function flagBooleanTrue() {
diff --git a/flags/tests/bool.ts b/flags/tests/bool.ts
index 5d135028e..6fa014d8d 100755
--- a/flags/tests/bool.ts
+++ b/flags/tests/bool.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
test(function flagBooleanDefaultFalse() {
const argv = parse(["moo"], {
diff --git a/flags/tests/dash.ts b/flags/tests/dash.ts
index f8cec6ef7..6ab1a7d75 100755
--- a/flags/tests/dash.ts
+++ b/flags/tests/dash.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
test(function hyphen() {
assertEqual(parse(["-n", "-"]), { n: "-", _: [] });
diff --git a/flags/tests/default_bool.ts b/flags/tests/default_bool.ts
index 8cf6a720b..82dab5538 100755
--- a/flags/tests/default_bool.ts
+++ b/flags/tests/default_bool.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
test(function booleanDefaultTrue() {
const argv = parse([], {
diff --git a/flags/tests/dotted.ts b/flags/tests/dotted.ts
index 94867abb2..6b64e3b5e 100755
--- a/flags/tests/dotted.ts
+++ b/flags/tests/dotted.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
test(function dottedAlias() {
const argv = parse(["--a.b", "22"], {
diff --git a/flags/tests/kv_short.ts b/flags/tests/kv_short.ts
index 1050d7734..41853c1de 100755
--- a/flags/tests/kv_short.ts
+++ b/flags/tests/kv_short.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
test(function short() {
const argv = parse(["-b=123"]);
diff --git a/flags/tests/long.ts b/flags/tests/long.ts
index 41c3e7743..d75ece3b2 100755
--- a/flags/tests/long.ts
+++ b/flags/tests/long.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
test(function longOpts() {
assertEqual(parse(["--bool"]), { bool: true, _: [] });
diff --git a/flags/tests/num.ts b/flags/tests/num.ts
index 0588b51f6..cc5b1b4e3 100755
--- a/flags/tests/num.ts
+++ b/flags/tests/num.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
test(function nums() {
const argv = parse([
diff --git a/flags/tests/parse.ts b/flags/tests/parse.ts
index 30551f875..263335761 100644
--- a/flags/tests/parse.ts
+++ b/flags/tests/parse.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
test(function _arseArgs() {
assertEqual(parse(["--no-moo"]), { moo: false, _: [] });
diff --git a/flags/tests/short.ts b/flags/tests/short.ts
index dee981351..fe8994394 100755
--- a/flags/tests/short.ts
+++ b/flags/tests/short.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
test(function numbericShortArgs() {
assertEqual(parse(["-n123"]), { n: 123, _: [] });
diff --git a/flags/tests/stop_early.ts b/flags/tests/stop_early.ts
index ca64bf97e..aef4d5dc5 100755
--- a/flags/tests/stop_early.ts
+++ b/flags/tests/stop_early.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
// stops parsing on the first non-option when stopEarly is set
test(function stopParsing() {
diff --git a/flags/tests/unknown.ts b/flags/tests/unknown.ts
index 2c87b18fe..e86f92796 100755
--- a/flags/tests/unknown.ts
+++ b/flags/tests/unknown.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
test(function booleanAndAliasIsNotUnknown() {
const unknown = [];
diff --git a/flags/tests/whitespace.ts b/flags/tests/whitespace.ts
index 8373cd19e..46ad09426 100755
--- a/flags/tests/whitespace.ts
+++ b/flags/tests/whitespace.ts
@@ -1,5 +1,5 @@
import { test, assertEqual } from "../../testing/mod.ts";
-import { parse } from "../index.ts";
+import { parse } from "../mod.ts";
test(function whitespaceShouldBeWhitespace() {
assertEqual(parse(["-x", "\t"]).x, "\t");