elua: remove long opts (not necessary or useful)
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Thu, 23 Apr 2015 14:30:12 +0000 (15:30 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 6 May 2015 14:05:22 +0000 (15:05 +0100)
src/bin/elua/main.c

index ca7ccc1..71f8033 100644 (file)
@@ -39,30 +39,16 @@ elua_print_help(const char *pname, FILE *stream)
                    "A main entry for all EFL/LuaJIT powered applications.\n\n"
                    "The following options are supported:\n\n"
                    ""
-                   "  -h,          --help                 Show this message.\n"
-                   "  -l,          --license              Show a license message.\n"
-                   "  -C[COREDIR], --core-dir=[COREDIR]   Elua core directory path.\n"
-                   "  -M[MODDIR],  --modules-dir=[MODDIR] Elua modules directory path.\n"
-                   "  -A[APPDIR],  --apps-dir=[APPDIR]    Elua applications directory path.\n"
-                   "  -l[LIBRARY], --library=[LIBRARY]    Require library 'library'.\n"
-                   "  -I[DIR],     --lib-dir=[DIR]        Append an additional require path.\n"
-                   "  -E,          --noenv                Ignore environment variables.\n", pname);
+                   "  -h          Show this message.\n"
+                   "  -l          Show a license message.\n"
+                   "  -C[COREDIR] Elua core directory path.\n"
+                   "  -M[MODDIR]  Elua modules directory path.\n"
+                   "  -A[APPDIR]  Elua applications directory path.\n"
+                   "  -l[LIBRARY] Require library 'library'.\n"
+                   "  -I[DIR],    Append an additional require path.\n"
+                   "  -E,         Ignore environment variables.\n", pname);
 }
 
-static struct option lopt[] =
-{
-   { "help"       , no_argument      , NULL, 'h' },
-
-   { "core-dir"   , required_argument, NULL, 'C' },
-   { "modules-dir", required_argument, NULL, 'M' },
-   { "apps-dir"   , required_argument, NULL, 'A' },
-
-   { "library"    , required_argument, NULL, 'l' },
-   { "lib-dir"    , required_argument, NULL, 'I' },
-   { "noenv"      , no_argument      , NULL, 'E' },
-   { NULL         , 0                , NULL,   0 }
-};
-
 /* protected main */
 static int
 elua_main(lua_State *L)
@@ -80,7 +66,7 @@ elua_main(lua_State *L)
 
    int ch;
 
-   while ((ch = getopt_long(argc, argv, "+LhC:M:A:l:I:E", lopt, NULL)) != -1)
+   while ((ch = getopt(argc, argv, "+LhC:M:A:l:I:E")) != -1)
      switch (ch)
        {
         case 'h':