From 1a1e78a87205d99b853c445b3aad408170abb435 Mon Sep 17 00:00:00 2001 From: Ivan Valdes Date: Wed, 14 Feb 2024 21:45:44 -0800 Subject: [PATCH] tools/rw-heatmaps: add argument shortcuts Signed-off-by: Ivan Valdes --- tools/rw-heatmaps/cmd/root.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/rw-heatmaps/cmd/root.go b/tools/rw-heatmaps/cmd/root.go index b5fed291c621..732e78514522 100644 --- a/tools/rw-heatmaps/cmd/root.go +++ b/tools/rw-heatmaps/cmd/root.go @@ -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.