Enlightenment CVS committal
Author : dj2
Project : misc
Module : eke
Dir : misc/eke/src
Modified Files:
main.c
Log Message:
- add simple usage text
===================================================================
RCS file: /cvsroot/enlightenment/misc/eke/src/main.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- main.c 30 Dec 2004 01:20:24 -0000 1.2
+++ main.c 30 Dec 2004 05:22:48 -0000 1.3
@@ -7,6 +7,7 @@
static int eke_exit_cb(void *data, int type, void *ev);
static int eke_find_theme(Eke *eke, const char *thm);
+static void usage(void);
int
main(int argc, char ** argv)
@@ -31,6 +32,11 @@
} else if (!strncmp(argv[i], "--gui-ewl", 9)) {
eke.gui.type = EKE_GUI_TYPE_EWL;
last_arg = i;
+
+ } else if (!strncmp(argv[i], "--help", 6)
+ || (!strncmp(argv[i], "-h", 2))) {
+ usage();
+ return 0;
}
}
@@ -118,4 +124,19 @@
return 0;
}
+static void
+usage(void)
+{
+ printf("\n%s %s\n"
+ "Usage: %s [options] [feed] [feed] ...\n\n"
+ " options\n"
+ " --gui-ewl \t\t -- use the EWL gui\n"
+ " --gui-edje \t\t -- use the Edje gui\n"
+ " --edje-theme <theme> -- set the theme to use with the Edje gui\n"
+ " --help \t\t -- this help\n\n",
+ PACKAGE, VERSION, PACKAGE);
+}
+
+
+
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs