Skip to content

Commit

Permalink
tools/rw-heatmaps: add argument shortcuts
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Valdes <[email protected]>
  • Loading branch information
ivanvc committed Feb 15, 2024
1 parent 1467901 commit 1a1e78a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/rw-heatmaps/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ func newOptions() options {

// AddFlags sets the flags for the command.
func (o *options) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&o.title, "title", o.title, "plot graph title (required)")
fs.StringVar(&o.outputImageFile, "output-image-file", o.outputImageFile, "output image filename (required)")
fs.StringVar(&o.outputFormat, "output-format", o.outputFormat, "output image file format")
fs.StringVarP(&o.title, "title", "t", o.title, "plot graph title (required)")
fs.StringVarP(&o.outputImageFile, "output-image-file", "o", o.outputImageFile, "output image filename (required)")
fs.StringVarP(&o.outputFormat, "output-format", "f", o.outputFormat, "output image file format")
}

// Validate returns an error if the options are invalid.
Expand Down

0 comments on commit 1a1e78a

Please sign in to comment.