From a265a265796b51853f2002aae2855d95f3d4fc60 Mon Sep 17 00:00:00 2001 From: Yilun Date: Tue, 21 Jun 2022 13:13:55 -0700 Subject: [PATCH] Fix password argument incompatibiltity with previous version Signed-off-by: Yilun --- cmd/nknd/commands/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/nknd/commands/root.go b/cmd/nknd/commands/root.go index 2374b3202..ef7655cbf 100644 --- a/cmd/nknd/commands/root.go +++ b/cmd/nknd/commands/root.go @@ -83,7 +83,7 @@ func init() { rootCmd.CompletionOptions.DisableDefaultCmd = true rootCmd.Flags().BoolVarP(&createMode, "create", "c", false, "Create Mode") rootCmd.Flags().StringVar(&config.SeedList, "seed", "", "Seed node address to join, multiple seeds should be split by comma") - rootCmd.Flags().StringVar(&password.Passwd, "passwd", "", "Password of Your wallet private Key") + rootCmd.Flags().StringVarP(&password.Passwd, "passwd", "p", "", "Password of Your wallet private Key") rootCmd.Flags().BoolVar(&config.SkipNAT, "no-nat", false, "Skip NAT traversal for UPnP and NAT-PMP") rootCmd.Flags().BoolVar(&config.Debug, "debug", false, "Provide runtime profiling data of NKN") rootCmd.Flags().StringVar(&config.StatePruningMode, "pruning", "", "state pruning mode: none, lowmem")