Open
Description
#include "docopt.h"
static const char usage[] =
R"(Usage:
underscore -a BASE_ADDRESS
)";
int main(int argc, char *argv[])
{
auto args = docopt::docopt(usage, {argv+1, argv+argc}, true);
}
This prints:
$ ./underscore -a 1
Arguments did not match expected patterns
Usage:
underscore -a BASE_ADDRESS
If BASE_ADDRESS
becomes BASE1ADDRESS
or BASE-ADDRESS
, the error still happens.
This should be either documented or fixed, I think.
Activity