-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparseroptions.js
More file actions
41 lines (40 loc) · 937 Bytes
/
parseroptions.js
File metadata and controls
41 lines (40 loc) · 937 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
31
32
33
34
35
36
37
38
39
40
41
"use strict";
module.exports = [ {
name: 'version',
type: 'bool',
help: 'Print version and exit.'
}, {
names: [ 'help', 'h' ],
type: 'bool',
help: 'Print this help and exit.'
}, {
names: [ 'verbose', 'v' ],
type: 'bool',
help: 'Enable verbose output.'
}, {
name: 'token',
type: 'string',
env: 'DO_TOKEN',
help: 'Specifies your DO API token.',
helpArg: 'TOKEN'
}, {
name: 'fromfile',
type: 'arrayOfString',
help: 'Allows you to read a given value from a file, eg: --fromfile=userdata,~/user-data'
}, {
name: 'json',
type: 'bool',
help: 'Output responses in raw JSON.'
}, {
name: 'pretty',
type: 'bool',
help: 'If set, will output more human-readable JSON.'
}, {
name: 'stdin',
type: 'bool',
help: 'If set, will read the request body from stdin.'
}, {
name: 'wait',
type: 'bool',
help: 'If set, will wait for the created action to complete. Eg: when creating a droplet will wait for successful creation.'
} ];