summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-04-23 15:30:12 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:22 +0100
commit5cd8e4e67bba83ef7cb8589910c47aba7de8e008 (patch)
tree7512b1eed2d4b2344b0a2e3720634862e0143d68 /src/bin
parent660a4d7e1c752164aadafcdadb740745f2b123f7 (diff)
elua: remove long opts (not necessary or useful)
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/elua/main.c32
1 files changed, 9 insertions, 23 deletions
diff --git a/src/bin/elua/main.c b/src/bin/elua/main.c
index ca7ccc1ab2..71f8033acb 100644
--- a/src/bin/elua/main.c
+++ b/src/bin/elua/main.c
@@ -39,30 +39,16 @@ elua_print_help(const char *pname, FILE *stream)
39 "A main entry for all EFL/LuaJIT powered applications.\n\n" 39 "A main entry for all EFL/LuaJIT powered applications.\n\n"
40 "The following options are supported:\n\n" 40 "The following options are supported:\n\n"
41 "" 41 ""
42 " -h, --help Show this message.\n" 42 " -h Show this message.\n"
43 " -l, --license Show a license message.\n" 43 " -l Show a license message.\n"
44 " -C[COREDIR], --core-dir=[COREDIR] Elua core directory path.\n" 44 " -C[COREDIR] Elua core directory path.\n"
45 " -M[MODDIR], --modules-dir=[MODDIR] Elua modules directory path.\n" 45 " -M[MODDIR] Elua modules directory path.\n"
46 " -A[APPDIR], --apps-dir=[APPDIR] Elua applications directory path.\n" 46 " -A[APPDIR] Elua applications directory path.\n"
47 " -l[LIBRARY], --library=[LIBRARY] Require library 'library'.\n" 47 " -l[LIBRARY] Require library 'library'.\n"
48 " -I[DIR], --lib-dir=[DIR] Append an additional require path.\n" 48 " -I[DIR], Append an additional require path.\n"
49 " -E, --noenv Ignore environment variables.\n", pname); 49 " -E, Ignore environment variables.\n", pname);
50} 50}
51 51
52static struct option lopt[] =
53{
54 { "help" , no_argument , NULL, 'h' },
55
56 { "core-dir" , required_argument, NULL, 'C' },
57 { "modules-dir", required_argument, NULL, 'M' },
58 { "apps-dir" , required_argument, NULL, 'A' },
59
60 { "library" , required_argument, NULL, 'l' },
61 { "lib-dir" , required_argument, NULL, 'I' },
62 { "noenv" , no_argument , NULL, 'E' },
63 { NULL , 0 , NULL, 0 }
64};
65
66/* protected main */ 52/* protected main */
67static int 53static int
68elua_main(lua_State *L) 54elua_main(lua_State *L)
@@ -80,7 +66,7 @@ elua_main(lua_State *L)
80 66
81 int ch; 67 int ch;
82 68
83 while ((ch = getopt_long(argc, argv, "+LhC:M:A:l:I:E", lopt, NULL)) != -1) 69 while ((ch = getopt(argc, argv, "+LhC:M:A:l:I:E")) != -1)
84 switch (ch) 70 switch (ch)
85 { 71 {
86 case 'h': 72 case 'h':