diff --git a/cmd/neofs-adm/internal/modules/morph/subnet.go b/cmd/neofs-adm/internal/modules/morph/subnet.go index 9430f39b7..818357ea0 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)