From d7b0abd782705c2b78d0e4b78407bb004ebd44f4 Mon Sep 17 00:00:00 2001 From: Zachary Wasserman Date: Wed, 9 May 2018 16:54:07 -0700 Subject: [PATCH] Clean up flag descriptions (#1778) --- cmd/fleetctl/config.go | 10 +++++----- cmd/fleetctl/fleetctl.go | 2 +- cmd/fleetctl/login.go | 4 ++-- cmd/fleetctl/setup.go | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cmd/fleetctl/config.go b/cmd/fleetctl/config.go index df543472bd..648cb4d10a 100644 --- a/cmd/fleetctl/config.go +++ b/cmd/fleetctl/config.go @@ -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", diff --git a/cmd/fleetctl/fleetctl.go b/cmd/fleetctl/fleetctl.go index d12b3aa1db..da38ac052f 100644 --- a/cmd/fleetctl/fleetctl.go +++ b/cmd/fleetctl/fleetctl.go @@ -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() diff --git a/cmd/fleetctl/login.go b/cmd/fleetctl/login.go index c2b178f67f..fe694aad83 100644 --- a/cmd/fleetctl/login.go +++ b/cmd/fleetctl/login.go @@ -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 { diff --git a/cmd/fleetctl/setup.go b/cmd/fleetctl/setup.go index 21239d23ec..2b9f48746f 100644 --- a/cmd/fleetctl/setup.go +++ b/cmd/fleetctl/setup.go @@ -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 {