add -h/--help for vtorri

:)



SVN revision: 72272
This commit is contained in:
Carsten Haitzler 2012-06-17 06:06:38 +00:00
parent 67f9cb1c5c
commit 8edab21318
2 changed files with 14 additions and 2 deletions

View File

@ -22,7 +22,9 @@ requirements="\
eet >= 1.6.99 \
evas >= 1.2.99 \
ecore >= 1.2.99 \
edje >= 1.2.99"
edje >= 1.2.99 \
emotion >= 1.0.99 \
"
PKG_CHECK_MODULES([TERMINOLOGY], [${requirements}])

View File

@ -117,7 +117,17 @@ elm_main(int argc, char **argv)
for (i = 1; i < argc; i++)
{
if ((!strcmp(argv[i], "-e")) && (i < (argc - 1)))
if ((!strcmp(argv[i], "-h")) ||
(!strcmp(argv[i], "-help")) ||
(!strcmp(argv[i], "--help")))
{
printf("Options:\n"
" -e CMD Execute command CMD instead of the users shell\n"
" -t THEME Use the named edje theme or path to theme file\n"
" -b FILE Use the named file as a background wallpaper\n");
exit(0);
}
else if ((!strcmp(argv[i], "-e")) && (i < (argc - 1)))
{
i++;
cmd = argv[i];