Open ericonr opened 2 years ago
#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.
BASE_ADDRESS
BASE1ADDRESS
BASE-ADDRESS
This should be either documented or fixed, I think.
I think this would be a good enhancement.
This prints:
If
BASE_ADDRESS
becomesBASE1ADDRESS
orBASE-ADDRESS
, the error still happens.This should be either documented or fixed, I think.