Browse Source

ccanlint: use -t for --target not --timeout

I use --target far more than --timeout.
Rusty Russell 14 years ago
parent
commit
04f453bbed
2 changed files with 3 additions and 3 deletions
  1. 1 1
      Makefile
  2. 2 2
      tools/ccanlint/ccanlint.c

+ 1 - 1
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)

+ 2 - 2
tools/ccanlint/ccanlint.c

@@ -733,10 +733,10 @@ int main(int argc, char *argv[])
 			   "simply give one line summary");
 	opt_register_arg("-x|--exclude <testname>", exclude_test, NULL, NULL,
 			 "exclude <testname> (can be used multiple times)");
-	opt_register_arg("-t|--timeout <milleseconds>", opt_set_uintval,
+	opt_register_arg("--timeout <milleseconds>", opt_set_uintval,
 			 NULL, &timeout,
 			 "ignore (terminate) tests that are slower than this");
-	opt_register_arg("--target <testname>", opt_set_target, NULL, &all,
+	opt_register_arg("-t|--target <testname>", opt_set_target, NULL, &all,
 			 "only run one test (and its prerequisites)");
 	opt_register_arg("--compiler <compiler>", opt_set_const_charp,
 			 NULL, &compiler, "set the compiler");