Closed shabbychef closed 8 years ago
docopt does not deal correctly with the case of a given args argument when it is called by r ('little r'). This patch moves the detection of command-line args into the missing check block, so that code like
docopt
args
r
missing
opt <- docopt(doc,args='--verbose --just-testing --etc')
works whether or not the code is ultimately called by R or r.
R
Thanks for the fix!
docopt
does not deal correctly with the case of a givenargs
argument when it is called byr
('little r'). This patch moves the detection of command-line args into themissing
check block, so that code likeworks whether or not the code is ultimately called by
R
orr
.