diff --git a/command/status.go b/command/status.go index 89faf6c3ef7..5fb552ceeda 100644 --- a/command/status.go +++ b/command/status.go @@ -11,6 +11,9 @@ import ( type StatusCommand struct { Meta + + // Placeholder bool to allow passing of verbose flags to subcommands. + verbose bool } func (s *StatusCommand) Help() string { @@ -23,7 +26,13 @@ Usage: nomad status [options] General Options: - ` + generalOptionsUsage() + ` + generalOptionsUsage() + ` + +Status Options: + + -verbose + Display full information. +` return strings.TrimSpace(helpText) } @@ -65,6 +74,7 @@ func (c *StatusCommand) AutocompleteArgs() complete.Predictor { func (c *StatusCommand) Run(args []string) int { flags := c.Meta.FlagSet("status", FlagSetClient) flags.Usage = func() { c.Ui.Output(c.Help()) } + flags.BoolVar(&c.verbose, "verbose", false, "") if err := flags.Parse(args); err != nil { c.Ui.Error(fmt.Sprintf("Error parsing arguments: %q", err))