X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.c;h=ab805806144670e29dc01e05db63c80706c8030c;hb=9056c31b46452c92c7dd9c276664f514720a84c6;hp=51962de8582f9a290b272e95b75cc19347065c51;hpb=8d70667887ba081d76075e8959adafb22983b03a;p=ccan diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c index 51962de8..ab805806 100644 --- a/tools/ccanlint/ccanlint.c +++ b/tools/ccanlint/ccanlint.c @@ -363,24 +363,24 @@ int main(int argc, char *argv[]) cmdline_exclude = btree_new(btree_strcmp); info_exclude = btree_new(btree_strcmp); - opt_register_arg("--dir/-d", opt_set_charp, opt_show_charp, &dir, + opt_register_arg("--dir|-d", opt_set_charp, opt_show_charp, &dir, "use this directory"); - opt_register_noarg("-n/--safe-mode", opt_set_bool, &safe_mode, + opt_register_noarg("-n|--safe-mode", opt_set_bool, &safe_mode, "do not compile anything"); - opt_register_noarg("-l/--list-tests", list_tests, NULL, + opt_register_noarg("-l|--list-tests", list_tests, NULL, "list tests ccanlint performs (and exit)"); - opt_register_arg("-k/--keep ", keep_test, NULL, NULL, + opt_register_arg("-k|--keep ", keep_test, NULL, NULL, "keep results of (can be used multiple times)"); - opt_register_noarg("--summary/-s", opt_set_bool, &summary, + opt_register_noarg("--summary|-s", opt_set_bool, &summary, "simply give one line summary"); - opt_register_noarg("--verbose/-v", opt_inc_intval, &verbose, + opt_register_noarg("--verbose|-v", opt_inc_intval, &verbose, "verbose mode (can specify more than once)"); - opt_register_arg("-x/--exclude ", skip_test, NULL, NULL, + opt_register_arg("-x|--exclude ", skip_test, NULL, NULL, "exclude (can be used multiple times)"); - opt_register_arg("-t/--timeout ", opt_set_uintval, + opt_register_arg("-t|--timeout ", opt_set_uintval, NULL, &timeout, "ignore (terminate) tests that are slower than this"); - opt_register_noarg("-?/-h/--help", opt_usage_and_exit, + opt_register_noarg("-?|-h|--help", opt_usage_and_exit, "\nA program for checking and guiding development" " of CCAN modules.", "This usage message");