Clean up flag descriptions (#1778)

This commit is contained in:
Zachary Wasserman
2018-05-09 16:54:07 -07:00
committed by GitHub
parent bef7a99160
commit d7b0abd782
4 changed files with 11 additions and 11 deletions
+5 -5
View File
@@ -33,7 +33,7 @@ func configFlag() cli.Flag {
Name: "config",
Value: fmt.Sprintf("%s/.fleet/config", env.String("HOME", "~/")),
EnvVar: "CONFIG",
Usage: "The path to the Fleet config file",
Usage: "Path to the Fleet config file",
}
}
@@ -42,7 +42,7 @@ func contextFlag() cli.Flag {
Name: "context",
Value: "default",
EnvVar: "CONTEXT",
Usage: "The Fleet config context",
Usage: "Name of Fleet config context to use",
}
}
@@ -193,21 +193,21 @@ func configSetCommand() cli.Command {
EnvVar: "ADDRESS",
Value: "",
Destination: &flAddress,
Usage: "The address of the Fleet API",
Usage: "Address of the Fleet server",
},
cli.StringFlag{
Name: "email",
EnvVar: "EMAIL",
Value: "",
Destination: &flEmail,
Usage: "The email to use when connecting to the Fleet API",
Usage: "Email to use when connecting to the Fleet server",
},
cli.StringFlag{
Name: "token",
EnvVar: "TOKEN",
Value: "",
Destination: &flToken,
Usage: "The Fleet API token",
Usage: "Fleet API token",
},
cli.BoolFlag{
Name: "ignore-tls",
+1 -1
View File
@@ -15,7 +15,7 @@ func init() {
func main() {
app := cli.NewApp()
app.Name = "fleetctl"
app.Usage = "The CLI for operating Kolide Fleet"
app.Usage = "CLI for operating Kolide Fleet"
app.Version = version.Version().Version
cli.VersionPrinter = func(c *cli.Context) {
version.PrintFull()
+2 -2
View File
@@ -31,14 +31,14 @@ Interactively prompts for email and password if not specified in the flags or en
EnvVar: "EMAIL",
Value: "",
Destination: &flEmail,
Usage: "The email to use to login",
Usage: "Email to use to log in",
},
cli.StringFlag{
Name: "password",
EnvVar: "PASSWORD",
Value: "",
Destination: &flPassword,
Usage: "The password to use to login (recommended to use interactive entry)",
Usage: "Password to use to log in (recommended to use interactive entry)",
},
},
Action: func(c *cli.Context) error {
+3 -3
View File
@@ -26,21 +26,21 @@ func setupCommand() cli.Command {
EnvVar: "EMAIL",
Value: "",
Destination: &flEmail,
Usage: "The email of the admin user to create",
Usage: "Email of the admin user to create",
},
cli.StringFlag{
Name: "password",
EnvVar: "PASSWORD",
Value: "",
Destination: &flPassword,
Usage: "The password for the admin user",
Usage: "Password for the admin user",
},
cli.StringFlag{
Name: "org-name",
EnvVar: "ORG_NAME",
Value: "",
Destination: &flOrgName,
Usage: "The name of the organization",
Usage: "Name of the organization",
},
},
Action: func(c *cli.Context) error {