aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/tycommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/tycommon.h')
-rw-r--r--src/bin/tycommon.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bin/tycommon.h b/src/bin/tycommon.h
index f29b247..da7af40 100644
--- a/src/bin/tycommon.h
+++ b/src/bin/tycommon.h
@@ -14,5 +14,22 @@ Eina_Bool is_running_in_terminology(void);
} \
while (0)
+#define HELP_ARGUMENT_DOC " -h or --help Display this help."
+#define HELP_ARGUMENT_SHORT "[-h]"
+
+#define ARGUMENT_ENTRY_CHECK(argc, argv, help_func) \
+ do \
+ { \
+ int i = 0; \
+ for(i = 0; i < argc; i++) \
+ { \
+ if (!strcmp(argv[i], "--help") || !strcmp(argv[i],"-h")) \
+ { \
+ help_func(argv[0]); \
+ return EXIT_SUCCESS; \
+ } \
+ } \
+ } \
+ while(0)
#endif