From 5a34288bfbf9aa4c20ae9b84dfc98b71feb2b77f Mon Sep 17 00:00:00 2001 From: Bruno Dilly Date: Thu, 27 May 2010 02:39:20 +0000 Subject: [PATCH] Add '-h' argument to edje_decc and improve usage message. SVN revision: 49221 --- legacy/edje/src/bin/edje_decc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/legacy/edje/src/bin/edje_decc.c b/legacy/edje/src/bin/edje_decc.c index 7a1f7a8bc7..387a8736c6 100644 --- a/legacy/edje/src/bin/edje_decc.c +++ b/legacy/edje/src/bin/edje_decc.c @@ -47,6 +47,10 @@ main_help(void) ("Usage:\n" "\t%s input_file.edj [-main-out file.edc] [-no-build-sh] [-current-dir]\n" "\n" + " -main-out\tCreate a symbolic link to the main edc \n" + " -no-build-sh\tDon't output build.sh \n" + " -current-dir\tOutput to current directory \n" + "\n" ,progname); } @@ -72,6 +76,11 @@ main(int argc, char **argv) progname = argv[0]; for (i = 1; i < argc; i++) { + if (!strcmp(argv[i], "-h")) + { + main_help(); + exit(0); + } if (!file_in) file_in = argv[i]; else if ((!strcmp(argv[i], "-main-out")) && (i < (argc - 1)))