Add '-h' argument to edje_decc and improve usage message.
authorbdilly <bdilly>
Thu, 27 May 2010 02:39:20 +0000 (02:39 +0000)
committerbdilly <bdilly@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 27 May 2010 02:39:20 +0000 (02:39 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49221 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_decc.c

index 7a1f7a8..387a873 100644 (file)
@@ -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)))