[#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 09a59fef56
commit f48b1de54b

View file

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