|
@@ -34,32 +34,32 @@
|
34
|
34
|
|
35
|
35
|
/**@todo set logfiles as "leadings" option */
|
36
|
36
|
#define TTAIL_LONG_OPT {\
|
37
|
|
- {"verbose", no_argument, 0, 'v'},\
|
|
37
|
+ {"date-min", required_argument, 0, 'd'},\
|
|
38
|
+ {"date-max", required_argument, 0, 'm'},\
|
|
39
|
+ {"date-format", required_argument, 0, 'f'},\
|
|
40
|
+ {"prefix-len", required_argument, 0, 'p'},\
|
38
|
41
|
{"re-prefix", required_argument, 0, 'r'},\
|
39
|
42
|
{"re-extended", no_argument, 0, 'E'},\
|
40
|
43
|
{"re-ignore-case", no_argument, 0, 'i'},\
|
41
|
|
- {"prefix-len", required_argument, 0, 'p'},\
|
42
|
|
- {"date-format", required_argument, 0, 'f'},\
|
43
|
|
- {"date-min", required_argument, 0, 'd'},\
|
44
|
|
- {"date-max", required_argument, 0, 'm'},\
|
45
|
44
|
{"permissive", no_argument, 0, 'P'},\
|
|
45
|
+ {"verbose", no_argument, 0, 'v'},\
|
46
|
46
|
{"help", no_argument, 0, 'h'},\
|
47
|
47
|
{0, 0, 0, 0 }\
|
48
|
48
|
}
|
49
|
49
|
#define TTAIL_SHORT_OPT "vr:Eip:f:d:l:m:Ph"
|
50
|
50
|
|
51
|
51
|
#define TTAIL_OPT_HELP {\
|
52
|
|
- {"Augment the verbosity level",NULL},\
|
|
52
|
+ {"Start to output loglines starting from this date","DATE"},\
|
|
53
|
+ {"Stop to output loglines before this date","DATE"},\
|
|
54
|
+ {"Set the date format (see man strptime for supported date formats"\
|
|
55
|
+,"FORMAT"},\
|
|
56
|
+ {"Indicate to strip a fixed len prefix","CHAR_COUNT"},\
|
53
|
57
|
{"Matched part of logline will be stripped","REGEX"},\
|
54
|
58
|
{"Interpret REGEX as an extended regular expression (specified by \
|
55
|
59
|
POSIX) ",NULL},\
|
56
|
60
|
{"Ignore case distinctions (specified by POSIX)",NULL},\
|
57
|
|
- {"Indicate to strip a fixed len prefix","CHAR_COUNT"},\
|
58
|
|
- {"Set the date format (see man strptime for supported date formats"\
|
59
|
|
-,"FORMAT"},\
|
60
|
|
- {"Start to output loglines starting from this date","DATE"},\
|
61
|
|
- {"Stop to output loglines before this date","DATE"},\
|
62
|
61
|
{"Tell ttail to not stop on loglines not formatted as expected",NULL},\
|
|
62
|
+ {"Augment the verbosity level",NULL},\
|
63
|
63
|
{"Print this help and exit",NULL},\
|
64
|
64
|
{"",NULL}\
|
65
|
65
|
}
|