85 |
/* If nonzero, show only the part of a line matching the expression. */ |
/* If nonzero, show only the part of a line matching the expression. */ |
86 |
static int only_matching; |
static int only_matching; |
87 |
|
|
88 |
|
/* If nonzero, make sure first content char in a line is on a tab stop. */ |
89 |
|
static int align_tabs; |
90 |
|
|
91 |
/* The context and logic for choosing default --color screen attributes |
/* The context and logic for choosing default --color screen attributes |
92 |
(foreground and background colors, etc.) are the following. |
(foreground and background colors, etc.) are the following. |
93 |
-- There are eight basic colors available, each with its own |
-- There are eight basic colors available, each with its own |
273 |
static struct exclude *included_patterns; |
static struct exclude *included_patterns; |
274 |
/* Short options. */ |
/* Short options. */ |
275 |
static char const short_options[] = |
static char const short_options[] = |
276 |
"0123456789A:B:C:D:EFGHIPUVX:abcd:e:f:hiKLlm:noqRrsuvwxyZz"; |
"0123456789A:B:C:D:EFGHIPTUVX:abcd:e:f:hiKLlm:noqRrsuvwxyZz"; |
277 |
|
|
278 |
/* Non-boolean long options that have no corresponding short equivalents. */ |
/* Non-boolean long options that have no corresponding short equivalents. */ |
279 |
enum |
enum |
312 |
{"help", no_argument, &show_help, 1}, |
{"help", no_argument, &show_help, 1}, |
313 |
{"include", required_argument, NULL, INCLUDE_OPTION}, |
{"include", required_argument, NULL, INCLUDE_OPTION}, |
314 |
{"ignore-case", no_argument, NULL, 'i'}, |
{"ignore-case", no_argument, NULL, 'i'}, |
315 |
|
{"initial-tab", no_argument, NULL, 'T'}, |
316 |
{"label", required_argument, NULL, LABEL_OPTION}, |
{"label", required_argument, NULL, LABEL_OPTION}, |
317 |
{"line-buffered", no_argument, NULL, LINE_BUFFERED_OPTION}, |
{"line-buffered", no_argument, NULL, LINE_BUFFERED_OPTION}, |
318 |
{"line-number", no_argument, NULL, 'n'}, |
{"line-number", no_argument, NULL, 'n'}, |
1380 |
-L, --files-without-match print only names of FILEs containing no match\n\ |
-L, --files-without-match print only names of FILEs containing no match\n\ |
1381 |
-l, --files-with-matches print only names of FILEs containing matches\n\ |
-l, --files-with-matches print only names of FILEs containing matches\n\ |
1382 |
-c, --count print only a count of matching lines per FILE\n\ |
-c, --count print only a count of matching lines per FILE\n\ |
1383 |
|
-T, --initial-tab make tabs line up (if needed)\n\ |
1384 |
-Z, --null print 0 byte after FILE name\n")); |
-Z, --null print 0 byte after FILE name\n")); |
1385 |
printf (_("\ |
printf (_("\ |
1386 |
\n\ |
\n\ |
1763 |
binary_files = WITHOUT_MATCH_BINARY_FILES; |
binary_files = WITHOUT_MATCH_BINARY_FILES; |
1764 |
break; |
break; |
1765 |
|
|
1766 |
|
case 'T': |
1767 |
|
align_tabs = 1; |
1768 |
|
break; |
1769 |
|
|
1770 |
case 'U': |
case 'U': |
1771 |
#if defined(HAVE_DOS_FILE_CONTENTS) |
#if defined(HAVE_DOS_FILE_CONTENTS) |
1772 |
dos_use_file_type = DOS_BINARY; |
dos_use_file_type = DOS_BINARY; |