cli: boolean logic is hard
This commit is contained in:
parent
320b36495d
commit
092e12d1be
@ -291,7 +291,7 @@ Examples:
|
||||
}
|
||||
|
||||
if cctx.Bool("car-export-merkle-proof") {
|
||||
if !cctx.Bool("car") && !cctx.IsSet("data-selector") {
|
||||
if !cctx.Bool("car") || !cctx.IsSet("data-selector") {
|
||||
return ShowHelp(cctx, fmt.Errorf("--car-export-merkle-proof requires --car and --data-selector"))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user