Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 171374 | Differences between
and this patch

Collapse All | Expand All

(-)qgrep.c.04 (-1 / +7 lines)
Lines 10-16 Link Here
10
10
11
#ifdef APPLET_qgrep
11
#ifdef APPLET_qgrep
12
12
13
#define QGREP_FLAGS "IiHNclLeEsS:" COMMON_FLAGS
13
#define QGREP_FLAGS "IiHNclLexEsS:" COMMON_FLAGS
14
static struct option const qgrep_long_opts[] = {
14
static struct option const qgrep_long_opts[] = {
15
	{"invert-match",  no_argument, NULL, 'I'},
15
	{"invert-match",  no_argument, NULL, 'I'},
16
	{"ignore-case",   no_argument, NULL, 'i'},
16
	{"ignore-case",   no_argument, NULL, 'i'},
Lines 20-25 Link Here
20
	{"list",          no_argument, NULL, 'l'},
20
	{"list",          no_argument, NULL, 'l'},
21
	{"invert-list",   no_argument, NULL, 'L'},
21
	{"invert-list",   no_argument, NULL, 'L'},
22
	{"regexp",        no_argument, NULL, 'e'},
22
	{"regexp",        no_argument, NULL, 'e'},
23
	{"extended",      no_argument, NULL, 'x'},
23
	{"eclass",        no_argument, NULL, 'E'},
24
	{"eclass",        no_argument, NULL, 'E'},
24
	{"skip-comments", no_argument, NULL, 's'},
25
	{"skip-comments", no_argument, NULL, 's'},
25
	{"skip",           a_argument, NULL, 'S'},
26
	{"skip",           a_argument, NULL, 'S'},
Lines 34-39 Link Here
34
	"Only print FILE names containing matches",
35
	"Only print FILE names containing matches",
35
	"Only print FILE names containing no match",
36
	"Only print FILE names containing no match",
36
	"Use PATTERN as a regular expression",
37
	"Use PATTERN as a regular expression",
38
	"Use PATTERN as an extended regular expression",
37
	"Search in eclasses instead of ebuilds",
39
	"Search in eclasses instead of ebuilds",
38
	"Skip comments lines",
40
	"Skip comments lines",
39
	"Skip lines matching <arg>",
41
	"Skip lines matching <arg>",
Lines 80-85 Link Here
80
		case 'l': do_list = 1; break;
82
		case 'l': do_list = 1; break;
81
		case 'L': do_list = invert_list = 1; break;
83
		case 'L': do_list = invert_list = 1; break;
82
		case 'e': do_regex = 1; break;
84
		case 'e': do_regex = 1; break;
85
		case 'x':
86
			do_regex = 1;
87
			reflags |= REG_EXTENDED;
88
			break;
83
		case 'E': do_eclass = 1; break;
89
		case 'E': do_eclass = 1; break;
84
		case 'H': show_filename = 1; break;
90
		case 'H': show_filename = 1; break;
85
		case 'N': show_name = 1; break;
91
		case 'N': show_name = 1; break;

Return to bug 171374