From f26951134b97a8fa8e18629a4f623167801909ed Mon Sep 17 00:00:00 2001 From: Brent Spillner Date: Sat, 9 Dec 2023 20:37:57 +1000 Subject: [PATCH] BUGFIX: f.StringVarP() was clearing the exportPath/databasePath strings --- cmd/sbctl/create-keys.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/sbctl/create-keys.go b/cmd/sbctl/create-keys.go index f45e335..1ab1da2 100644 --- a/cmd/sbctl/create-keys.go +++ b/cmd/sbctl/create-keys.go @@ -43,8 +43,8 @@ var createKeysCmd = &cobra.Command{ func createKeysCmdFlags(cmd *cobra.Command) { f := cmd.Flags() - f.StringVarP(&exportPath, "export", "e", "", "export file path. defaults to "+sbctl.KeysPath) - f.StringVarP(&databasePath, "database-path", "d", "", "location to create GUID file. defaults to "+sbctl.DatabasePath) + f.StringVarP(&exportPath, "export", "e", sbctl.KeysPath, "export file path. defaults to "+sbctl.KeysPath) + f.StringVarP(&databasePath, "database-path", "d", sbctl.DatabasePath, "location to create GUID file. defaults to "+sbctl.DatabasePath) } func init() {