I’m working with RPCs flags that will have a boolean argument which is extracted utilizing GetBoolArg
and there are numerous methods to move Boolean arguments. For instance
-fastprune=1 // true
-fastprune=0 // false
-fastprune // true
-fastprune=abc // true
-nofastprune // false
(please appropriate me if any one in every of them is flawed or if there are extra)
Why is there no consistensy in checks to move the arguments like =1/=0
for true/false
or simply move the flag for true
and do not move it for false
. This provides to confusion and provides pointless additional circumstances . For my part forcing upon restrictions can be higher to discount in unintentional errors.
Leave a Reply