-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflags.go
39 lines (32 loc) · 800 Bytes
/
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
package main
import (
"fmt"
"github.com/codegangsta/cli"
)
var logLevelFlag = cli.StringFlag{
Name: "log, l",
Value: "warn",
Usage: "Log verbose output (debug, info, warn).",
}
var nameFlag = cli.StringFlag{
Name: "name",
Value: "default",
Usage: "Name of the cluster.",
}
var serversFlag = cli.StringSliceFlag{
Name: "servers",
Value: &cli.StringSlice{},
Usage: fmt.Sprintf("Initial servers. List of docker listening address: tcp://<ip1>:<port1>,tcp://<ip2>:<port2>.\n\tDefault is localhost ($DOCKER_HOST or unix:///var/run/docker.sock)."),
}
var controllerNameFlag = cli.StringFlag{
Name: "name",
Usage: "Name of the project.",
}
var daemonFlag = cli.BoolFlag{
Name: "d",
Usage: "Run in daemon mode.",
}
var allFlag = cli.BoolFlag{
Name: "a",
Usage: "Display all.",
}