Skip to content

Commit c69128c

Browse files
committed
add blacketmode switch
1 parent 1410e32 commit c69128c

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

cli.js

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
import { DNCL3 } from "./DNCL3.js";
22

3-
const fn = Deno.args[0];
3+
let blacketmode = true;
4+
let fn = null;
5+
for (const a of Deno.args) {
6+
if (a.startsWith("-")) {
7+
if (a == "--wirth") {
8+
blacketmode = false;
9+
} else if (a == "--dncl3") {
10+
blacketmode = true;
11+
}
12+
} else {
13+
fn = a;
14+
}
15+
}
416
const s = await Deno.readTextFile(fn);
5-
new DNCL3(s).run();
17+
new DNCL3(s, null, null, blacketmode).run();

0 commit comments

Comments
 (0)