forked from rancher/convoy
/
flags.go
41 lines (39 loc) · 1.04 KB
/
flags.go
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
package flags
import (
"github.com/codegangsta/cli"
)
var (
DaemonFlags = []cli.Flag{
cli.BoolFlag{
Name: "debug",
Usage: "Debug log, enabled by default",
},
cli.StringFlag{
Name: "log",
Usage: "specific output log file, otherwise output to stdout by default",
},
cli.StringFlag{
Name: "root",
Value: "/var/lib/convoy",
Usage: "specific root directory of convoy, if configure file exists, daemon specific options would be ignored",
},
cli.StringSliceFlag{
Name: "drivers",
Value: &cli.StringSlice{},
Usage: "Drivers to be enabled, first driver in the list would be treated as default driver",
},
cli.StringSliceFlag{
Name: "driver-opts",
Value: &cli.StringSlice{},
Usage: "options for driver",
},
cli.StringFlag{
Name: "mnt-ns",
Usage: "Specify mount namespace file descriptor if user don't want to mount in current namespace. Support by Device Mapper and EBS",
},
cli.BoolFlag{
Name: "ignore-docker-delete",
Usage: "Do not delete volumes when told to by Docker",
},
}
)