forked from TrueCloudLab/frostfs-node
[#1323] neofs-cli: Reuse JSON flag for multiple commands
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
e812d78672
commit
9816d59ec0
12 changed files with 17 additions and 13 deletions
|
@ -80,7 +80,7 @@ func initContainerInfoCmd() {
|
|||
flags.StringVar(&containerID, "cid", "", "container ID")
|
||||
flags.StringVar(&containerPathTo, "to", "", "path to dump encoded container")
|
||||
flags.StringVar(&containerPathFrom, "from", "", "path to file with encoded container")
|
||||
flags.BoolVar(&containerJSON, "json", false, "print or dump container in JSON format")
|
||||
flags.BoolVar(&containerJSON, commonflags.JSON, false, "print or dump container in JSON format")
|
||||
}
|
||||
|
||||
type stringWriter cobra.Command
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue