[#1120] cli: Fix printing config file in verbose
mode
It was broken since `initConfig` was made before every execution of the command and flags have not been read by cobra yet, so it was impossible to print config file path if `verbose` flag was set in command line not in config file. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
08e83a2bc7
commit
679c922e0c
4 changed files with 3 additions and 8 deletions
|
@ -27,7 +27,6 @@ var controlCmd = &cobra.Command{
|
|||
_ = viper.BindPFlag(walletPath, ff.Lookup(walletPath))
|
||||
_ = viper.BindPFlag(address, ff.Lookup(address))
|
||||
_ = viper.BindPFlag(controlRPC, ff.Lookup(controlRPC))
|
||||
_ = viper.BindPFlag(verbose, ff.Lookup(verbose))
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue