cmd/achcli: add -skip-validation flag
@@ -31,6 +31,7 @@ var (
flagPretty = flag.Bool("pretty", false, "Display all values in their human readable format")
flagPrettyAmounts = flag.Bool("pretty.amounts", false, "Display human readable amounts instead of exact values")
+ flagSkipValidation = flag.Bool("skip-validation", false, "Skip all validation checks")
flagValidateOpts = flag.String("validate", "", "Path to config file in json format to enable validation opts")
)
@@ -105,6 +106,9 @@ func readValidationOpts(path string) *ach.ValidateOpts {
fmt.Printf("ERROR: unmarshal of validate opts failed: %v\n", err)
os.Exit(1)
}
+ if *flagSkipValidation {
+ opts.SkipAll = true
+ }
return &opts
}
return nil
