|
@@ -18,7 +18,7 @@
|
18
|
18
|
{"verbose", no_argument, 0, 'v'},\
|
19
|
19
|
{"re-prefix", required_argument, 0, 'r'},\
|
20
|
20
|
{"re-extended", no_argument, 0, 'E'},\
|
21
|
|
- {"re-case-insensitive", no_argument, 0, 'I'},\
|
|
21
|
+ {"re-ignore-case", no_argument, 0, 'i'},\
|
22
|
22
|
{"prefix-len", required_argument, 0, 'p'},\
|
23
|
23
|
{"date-format", required_argument, 0, 'f'},\
|
24
|
24
|
{"date-min", required_argument, 0, 'd'},\
|
|
@@ -26,8 +26,27 @@
|
26
|
26
|
{"logfile", required_argument, 0, 'l'},\
|
27
|
27
|
{0, 0, 0, 0 }\
|
28
|
28
|
}
|
|
29
|
+
|
|
30
|
+#define TTAIL_OPT_HELP {\
|
|
31
|
+ {"Augment the verbosity level",NULL},\
|
|
32
|
+ {"Matched part of logline will be stripped","REGEX"},\
|
|
33
|
+ {"Interpret REGEX as an extended regular expression (specified by \
|
|
34
|
+POSIX) ",NULL},\
|
|
35
|
+ {"Ignore case distinctions (specified by POSIX)",NULL},\
|
|
36
|
+ {"Indicate to strip a fixed len prefix","CHAR_COUNT"},\
|
|
37
|
+ {"Set the date format (see man strptime for supported date formats"\
|
|
38
|
+,"FORMAT"},\
|
|
39
|
+ {"Start to output loglines starting from this date","DATE"},\
|
|
40
|
+ {"Not implemented","DATE"},\
|
|
41
|
+ {"Indicate logfiles","FILE"},\
|
|
42
|
+ {"",NULL},\
|
|
43
|
+ {"",NULL}\
|
|
44
|
+}
|
29
|
45
|
#define TTAIL_SHORT_OPT "r:EIp:f:d:l:m:"
|
30
|
46
|
|
|
47
|
+/**<! Print help & usage */
|
|
48
|
+void usage();
|
|
49
|
+
|
31
|
50
|
/**@brief Parse cli arguments and return a ttail_t
|
32
|
51
|
*@param int argc
|
33
|
52
|
*@param char** argv
|