From 5f54fd5dc8b4a0dfebcf83c744f3da09d4d59fe6 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 9 Mar 2022 13:49:35 +0300 Subject: [PATCH] [#1223] amd: Fix subnet node command Added `-w` flag. Signed-off-by: Pavel Karpy (cherry picked from commit 697c12a5e98722a960aa80509126d93dbc58ccf2) --- cmd/neofs-adm/internal/modules/morph/subnet.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/neofs-adm/internal/modules/morph/subnet.go b/cmd/neofs-adm/internal/modules/morph/subnet.go index 9430f39b77..818357ea08 100644 --- a/cmd/neofs-adm/internal/modules/morph/subnet.go +++ b/cmd/neofs-adm/internal/modules/morph/subnet.go @@ -770,6 +770,7 @@ var cmdSubnetNode = &cobra.Command{ Short: "Manage nodes of the NeoFS subnet.", PreRun: func(cmd *cobra.Command, _ []string) { viperBindFlags(cmd, + flagSubnetWallet, flagSubnetNode, flagSubnetNodeSubnet, ) @@ -882,8 +883,10 @@ func init() { // subnet node flags nodeFlags := cmdSubnetNode.PersistentFlags() + nodeFlags.StringP(flagSubnetWallet, "w", "", "Path to file with wallet") + _ = cmdSubnetNode.MarkFlagRequired(flagSubnetWallet) nodeFlags.String(flagSubnetNode, "", "Hex-encoded public key of the node") - _ = cmdSubnetAdmin.MarkFlagRequired(flagSubnetNode) + _ = cmdSubnetNode.MarkFlagRequired(flagSubnetNode) nodeFlags.String(flagSubnetNodeSubnet, "", "ID of the subnet to manage nodes") _ = cmdSubnetNode.MarkFlagRequired(flagSubnetNodeSubnet)