-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcli.js
More file actions
30 lines (20 loc) · 904 Bytes
/
cli.js
File metadata and controls
30 lines (20 loc) · 904 Bytes
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
#!/usr/bin/env node
var neodoc = require("neodoc");
var args = neodoc.run(`Build userscript's meta from package.json file.
usage:
userscript-meta [--no-package] [--read=<file>...] [--update=<file>]
[--output=<file>] [--json]
options:
-n --no-package Don't extract data from package.json
-r --read Read metadata from files. Support json or any text file
containing userscript metadata block.
-u --update Update the metadata block in the file, instead of writing to
output. WARNING: If you want to preserved the original
metas, please -read the file first.
-o --output Write output meta block to file. If not provided, writing to
stdout.
--json Output json format.
-v --version Print version number.
-h --help Print help screen.
`);
require(".").init(args);