forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathargv_test.js
43 lines (33 loc) · 757 Bytes
/
argv_test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
'use strict';
var Arg = require("../../lib/js/arg.js");
var Block = require("../../lib/js/block.js");
function anno_fun(arg) {
return /* () */0;
}
var usage_msg = "Usage:\n";
var compile = /* record */[/* contents */false];
var test = /* record */[/* contents */true];
var arg_spec_000 = /* tuple */[
"-c",
/* Set */Block.__(2, [compile]),
" Compile"
];
var arg_spec_001 = /* :: */[
/* tuple */[
"-d",
/* Clear */Block.__(3, [test]),
" Test"
],
/* [] */0
];
var arg_spec = /* :: */[
arg_spec_000,
arg_spec_001
];
Arg.parse(arg_spec, anno_fun, usage_msg);
exports.anno_fun = anno_fun;
exports.usage_msg = usage_msg;
exports.compile = compile;
exports.test = test;
exports.arg_spec = arg_spec;
/* Not a pure module */