forked from TrueCloudLab/frostfs-node
[#1223] amd: Fix subnet node command
Added `-w` flag.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
(cherry picked from commit 697c12a5e9
)
This commit is contained in:
parent
fe3be92c89
commit
5f54fd5dc8
1 changed files with 4 additions and 1 deletions
|
@ -770,6 +770,7 @@ var cmdSubnetNode = &cobra.Command{
|
||||||
Short: "Manage nodes of the NeoFS subnet.",
|
Short: "Manage nodes of the NeoFS subnet.",
|
||||||
PreRun: func(cmd *cobra.Command, _ []string) {
|
PreRun: func(cmd *cobra.Command, _ []string) {
|
||||||
viperBindFlags(cmd,
|
viperBindFlags(cmd,
|
||||||
|
flagSubnetWallet,
|
||||||
flagSubnetNode,
|
flagSubnetNode,
|
||||||
flagSubnetNodeSubnet,
|
flagSubnetNodeSubnet,
|
||||||
)
|
)
|
||||||
|
@ -882,8 +883,10 @@ func init() {
|
||||||
|
|
||||||
// subnet node flags
|
// subnet node flags
|
||||||
nodeFlags := cmdSubnetNode.PersistentFlags()
|
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")
|
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")
|
nodeFlags.String(flagSubnetNodeSubnet, "", "ID of the subnet to manage nodes")
|
||||||
_ = cmdSubnetNode.MarkFlagRequired(flagSubnetNodeSubnet)
|
_ = cmdSubnetNode.MarkFlagRequired(flagSubnetNodeSubnet)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue