[#2029] cli: Fix panic caused by flag redefinition

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-11-11 16:53:34 +03:00 committed by fyrchik
parent ddba9180ef
commit af54295ac6

View file

@ -32,7 +32,7 @@ var objectHashCmd = &cobra.Command{
func initObjectHashCmd() {
commonflags.Init(objectHashCmd)
initFlagSession(objectHeadCmd, "RANGEHASH")
initFlagSession(objectHashCmd, "RANGEHASH")
flags := objectHashCmd.Flags()