replace .Value.String() with .GetString(...)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
committed by
Florian Schade
parent
8564fa4536
commit
032c218789
@@ -34,7 +34,7 @@ func ConsistencyCommand(cfg *config.Config) *cobra.Command {
|
||||
Use: "consistency",
|
||||
Short: "check backup consistency",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
basePath := cmd.Flag("basepath").Value.String()
|
||||
basePath, _ := cmd.Flags().GetString("basepath")
|
||||
if basePath == "" {
|
||||
fmt.Println("basepath is required")
|
||||
_ = cmd.Help()
|
||||
|
||||
Reference in New Issue
Block a user