You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doesn't seem to be quite what you wanted with a custom bool type but perhaps closer than before. "T", "True", "TRUE", "true", "F", "False", "FALSE", "false" (but not "0" / "1") now cast to "reasonable" values.
parser<- ArgumentParser(prog='PROG')
parser$add_argument('-p', type="logical", action="append", help="a list of booleans")
args<- strsplit("-p T -p F -p True -p False -p 1 -p 0 -p badValue", "")[[1]]
parser$parse_args(args)
bool()
logic (everything but""
is TRUE instead use R'sas.logical()
's logic)The text was updated successfully, but these errors were encountered: