From 5b28ea4575c70af33b33620e6650923dde01d076 Mon Sep 17 00:00:00 2001 From: David Allen Date: Tue, 25 Mar 2025 16:34:04 -0600 Subject: [PATCH] cmd: allow short opts for username/password --- cmd/collect.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/collect.go b/cmd/collect.go index 6af6bf5..0888908 100644 --- a/cmd/collect.go +++ b/cmd/collect.go @@ -100,8 +100,8 @@ var CollectCmd = &cobra.Command{ func init() { currentUser, _ = user.Current() CollectCmd.PersistentFlags().StringVar(&host, "host", "", "Set the URI to the SMD root endpoint") - CollectCmd.PersistentFlags().StringVar(&username, "username", "", "Set the master BMC username") - CollectCmd.PersistentFlags().StringVar(&password, "password", "", "Set the master BMC password") + CollectCmd.PersistentFlags().StringVarP(&username, "username", "u", "", "Set the master BMC username") + CollectCmd.PersistentFlags().StringVarP(&password, "password", "p", "", "Set the master BMC password") CollectCmd.PersistentFlags().StringVar(&secretsFile, "secrets-file", "", "Set path to the node secrets file") CollectCmd.PersistentFlags().StringVar(&scheme, "scheme", "https", "Set the default scheme used to query when not included in URI") CollectCmd.PersistentFlags().StringVar(&protocol, "protocol", "tcp", "Set the protocol used to query")