Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #22 from ddunkin/quiet
Browse files Browse the repository at this point in the history
Add quiet flag.
  • Loading branch information
ChrisAubuchon authored Jun 27, 2016
2 parents 0dd7787 + bb75d38 commit aa5616c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions commands/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func Init(name, version string) *Cmd {
c.root.PersistentFlags().Var((*auth)(c.consul.auth), "auth", "The HTTP basic authentication username (and optional password) separated by a colon")
c.root.PersistentFlags().StringVar(&c.consul.token, "token", "", "The Consul ACL token")
c.root.PersistentFlags().StringVar(&c.consul.tokenFile, "token-file", "", "Path to file containing Consul ACL token")
c.root.PersistentFlags().BoolVarP(&c.root.SilenceUsage, "quiet", "q", false, "Don't show usage on error")

c.initAcl()
c.initAgent()
Expand Down
1 change: 1 addition & 0 deletions commands/consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type consul struct {
tokenFile string
auth *auth
tlsConfig *tls.Config
quiet bool

dc string
waitIndex uint64
Expand Down

0 comments on commit aa5616c

Please sign in to comment.