Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 5336041e71
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.546 kB
#include "./docopt.c"
int main(int argc, char *argv[]) {
DocoptArgs args = docopt(argc, argv, /* help */ 1, "2.0rc2");
printf("--help == %s\n", args.help ? "true" : "false");
printf("--version == %s\n", args.version ? "true" : "false");
printf("--tcp == %s\n", args.tcp ? "true" : "false");
printf("--serial == %s\n", args.serial ? "true" : "false");
printf("--host == %s\n", args.host);
printf("--port == %s\n", args.port);
printf("--timeout == %s\n", args.timeout);
printf("--baud == %s\n", args.baud);
}
Jump to Line
Something went wrong with that request. Please try again.