-
Notifications
You must be signed in to change notification settings - Fork 16
/
minimist.node.txt
18 lines (12 loc) · 1.63 KB
/
minimist.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
MINIMIST
ALTERNATIVES ==> #See yargs
VERSION ==> #0.2.0
MINIMIST(STR_ARR[, OBJ]) #Returns command lines arguments (should be process.argv.slice(2)) as OBJ2:
# - VAR: VAL:
# - _ STR_ARR: positional args (anything after --, or without dash at beginning)
#Notes:
# - can be -VAR[ VAL] or --[no-]VAR[=VAL]
# - can use OBJ.default OBJ2 values
# - if OBJ.alias OBJ3.VAR2: VAL2, --VAR2 will also create --VAL2