Skip to content

Commit

Permalink
update description for -limit flag of alerts command
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Nov 27, 2018
1 parent af370c0 commit b1297bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var commandAlerts = cli.Command{
Action: doAlertsRetrieve,
Flags: []cli.Flag{
cli.BoolFlag{Name: "with-closed, w", Usage: "Display open alert including close alert. default: false"},
cli.IntFlag{Name: "limit, l", Value: defaultAlertsLimit, Usage: "Set the number of alerts to display."},
cli.IntFlag{Name: "limit, l", Value: defaultAlertsLimit, Usage: fmt.Sprintf("Set the number of alerts to display. Default is set to %d when -with-closed is set, otherwise all the open alerts are displayed.", defaultAlertsLimit)},
},
Subcommands: []cli.Command{
{
Expand All @@ -50,7 +50,7 @@ var commandAlerts = cli.Command{
},
cli.BoolTFlag{Name: "color, c", Usage: "Colorize output. default: true"},
cli.BoolFlag{Name: "with-closed, w", Usage: "Display open alert including close alert. default: false"},
cli.IntFlag{Name: "limit, l", Value: defaultAlertsLimit, Usage: "Set the number of alerts to display."},
cli.IntFlag{Name: "limit, l", Value: defaultAlertsLimit, Usage: fmt.Sprintf("Set the number of alerts to display. Default is set to %d when -with-closed is set, otherwise all the open alerts are displayed.", defaultAlertsLimit)},
},
},
{
Expand Down

0 comments on commit b1297bc

Please sign in to comment.