blob: 41853c1def6a7e371e4265e9d7a0806257fa069f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { test, assertEqual } from "../../testing/mod.ts";
import { parse } from "../mod.ts";
test(function short() {
const argv = parse(["-b=123"]);
assertEqual(argv, { b: 123, _: [] });
});
test(function multiShort() {
const argv = parse(["-a=whatever", "-b=robots"]);
assertEqual(argv, { a: "whatever", b: "robots", _: [] });
});
|