Fixed the docs for the stats command

This commit is contained in:
Diptanu Choudhury 2016-05-26 15:44:54 -07:00
parent a0c279f3b2
commit 9499759013
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ type StatsCommand struct {
func (f *StatsCommand) Help() string {
helpText := `
Usage: nomad node-status [options] <alloc-id>
Usage: nomad stats [options] <alloc-id>
Displays statistics related to resource usage of tasks in an allocation. Use
the -task flag to query statistics of an individual task running in an
@ -36,13 +36,13 @@ Node Stats Options:
}
func (f *StatsCommand) Synopsis() string {
return "Dispalys stats of an allocation or a task running on a nomad client"
return "Dispalys resource usage stats of an allocation or a task running on a nomad client"
}
func (f *StatsCommand) Run(args []string) int {
var verbose bool
var task string
flags := f.Meta.FlagSet("fs-list", FlagSetClient)
flags := f.Meta.FlagSet("stats", FlagSetClient)
flags.BoolVar(&verbose, "verbose", false, "")
flags.StringVar(&task, "task", "", "")
flags.Usage = func() { f.Ui.Output(f.Help()) }