-
Notifications
You must be signed in to change notification settings - Fork 0
/
flags.js
41 lines (39 loc) · 901 Bytes
/
flags.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
import args from "args"
args
.option(
["n", "no-national"],
"Do not include national repeaters",
false,
)
.option(
["l", "no-local"],
"Do not include local repeaters",
false,
)
.option(
["d", "no-simplex"],
"Do not include simplex frequencies",
false,
)
.option(
["p", "no-pmr"],
"Do not include PRM frequencies",
false,
)
.option(
["s", "no-special"],
"Do not include special frequencies",
false,
)
.option(
["c", "coordinates"],
"Station coordinates (<lon,lat>)",
"25.1370926,42.1379215",
coordinates => coordinates.split(","),
)
.option(
["f", "no-file"],
"Do not generate a CSV file. Print output to STDOUT instead.",
false,
)
export default args.parse(process.argv)