[#886] cli: Fix API flags

Bind API cobra flags(`ttl' and xhdr')
to the Viper.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-10-07 13:37:57 +03:00 committed by Alex Vanin
parent 6b1e6456ab
commit 4615ff1392
5 changed files with 11 additions and 2 deletions

View file

@ -83,6 +83,7 @@ var containerCmd = &cobra.Command{
// bind exactly that cmd's flags to
// the viper before execution
bindCommonFlags(cmd)
bindAPIFlags(cmd)
},
}