From 04f453bbedd1eca3e5ab93290304d8193ffdd87f Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 2 Dec 2011 14:07:23 +1030 Subject: [PATCH] ccanlint: use -t for --target not --timeout I use --target far more than --timeout. --- Makefile | 2 +- tools/ccanlint/ccanlint.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c73569a5..570793c7 100644 --- a/Makefile +++ b/Makefile @@ -94,7 +94,7 @@ check-%: tools/ccanlint/ccanlint tools/ccanlint/ccanlint ccan/$* fastcheck-%: tools/ccanlint/ccanlint - tools/ccanlint/ccanlint -t $(FASTTIMEOUT) ccan/$* + tools/ccanlint/ccanlint --timeout $(FASTTIMEOUT) ccan/$* # Doesn't test dependencies, doesn't print verbose fail results. summary-check-%: tools/ccanlint/ccanlint $(OBJFILES) diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c index 56191bcc..5abcb9e8 100644 --- a/tools/ccanlint/ccanlint.c +++ b/tools/ccanlint/ccanlint.c @@ -733,10 +733,10 @@ int main(int argc, char *argv[]) "simply give one line summary"); opt_register_arg("-x|--exclude ", exclude_test, NULL, NULL, "exclude (can be used multiple times)"); - opt_register_arg("-t|--timeout ", opt_set_uintval, + opt_register_arg("--timeout ", opt_set_uintval, NULL, &timeout, "ignore (terminate) tests that are slower than this"); - opt_register_arg("--target ", opt_set_target, NULL, &all, + opt_register_arg("-t|--target ", opt_set_target, NULL, &all, "only run one test (and its prerequisites)"); opt_register_arg("--compiler ", opt_set_const_charp, NULL, &compiler, "set the compiler"); -- 2.39.2