From: ChunEon Park Date: Thu, 30 Oct 2014 08:00:22 +0000 (+0900) Subject: elementary_test: support --help command line. X-Git-Tag: v1.12.0-beta2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d11a13079001e94e0e7aa4ab92e60f9b70dd8e8e;p=platform%2Fupstream%2Felementary.git elementary_test: support --help command line. --- diff --git a/src/bin/test.c b/src/bin/test.c index 96ebff7..2a21d91 100644 --- a/src/bin/test.c +++ b/src/bin/test.c @@ -908,7 +908,19 @@ elm_main(int argc, char **argv) * the same name as the given param * ex: elementary_test "Box Vert 2" */ if (argc == 2) - autorun = argv[1]; + { + if (!strcmp(argv[1], "--help")) + { + printf("Usages:\n" + "$ elementary_test\n" + "$ elementary_test --test-win-only [TEST_NAME]\n" + "$ elementary_test -to [TEST_NAME]\n\n" + "Examples:\n" + "$ elementary_test -to Button\n\n"); + exit(EXIT_SUCCESS); + } + autorun = argv[1]; + } else if (argc == 3) { /* Just a workaround to make the shot module more