Skip to content

Commit

Permalink
fix: make zapi rest CLI consistent for max-records arg
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss authored and cgrinds committed Oct 27, 2023
1 parent 66f0e01 commit bd48994
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/tools/zapi/zapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,9 @@ func init() {
flags.StringVarP(&args.Attr, "attr", "t", "", "ZAPI attribute to show")
flags.StringVarP(&args.Object, "object", "o", "", "ZapiPerf object to show")
flags.StringSliceVarP(&args.Counters, "counter", "c", []string{}, "ZapiPerf counter(s) to show. Can be specified multiple times")
flags.IntVarP(&args.MaxRecords, "max", "m", 100, "max-records: max instances per API request")
flags.IntVarP(&args.MaxRecords, "max-records", "m", 100, "max instances per API request")
flags.IntVar(&args.MaxRecords, "max", 100, "max instances per API request (Deprecated: Use --max-records instead)")
_ = flags.MarkDeprecated("max", "Please use --max-records instead")
flags.StringSliceVarP(&args.Parameters, "parameters", "r", []string{}, "parameter to add to the ZAPI query")
flags.StringVar(&args.Config, "config", configPath, "harvest config file path")

Expand Down

0 comments on commit bd48994

Please sign in to comment.