+enum {
+ CALLS_OPT = CHAR_MAX + 1,
+ COLOR_OPT,
+ THREAD_IDS_OPT,
+ CALL_NOS_OPT,
+ ARG_NAMES_OPT,
+};
+
+const static char *
+shortOptions = "hv";
+
+const static struct option
+longOptions[] = {
+ {"help", no_argument, 0, 'h'},
+ {"verbose", no_argument, 0, 'v'},
+ {"calls", required_argument, 0, CALLS_OPT},
+ {"colour", optional_argument, 0, COLOR_OPT},
+ {"color", optional_argument, 0, COLOR_OPT},
+ {"thread-ids", optional_argument, 0, THREAD_IDS_OPT},
+ {"call-nos", optional_argument, 0, CALL_NOS_OPT},
+ {"arg-names", optional_argument, 0, ARG_NAMES_OPT},
+ {0, 0, 0, 0}
+};
+