Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Swap the meanings of the -d and -D options in pkg search
Matthew Seaman committed 13 years ago
commit ab0ba7d36c0af79b4782a571b02f6fe033d76624
parent d0c1a30
2 files changed +8 -8
modified pkg/pkg-search.8
@@ -63,14 +63,14 @@ Search for packages with comment text matching
Equivalent to
.Fl "S comment" .
.It Fl D
-
Display the list of packages depended on by each matched package.
-
Equivalent to
-
.Fl "M depends-on" .
-
.It Fl d
Search for packages with description text matching
.Ar pattern .
Equivalent to
.Fl "S description" .
+
.It Fl d
+
Display the list of packages depended on by each matched package.
+
Equivalent to
+
.Fl "M depends-on" .
.It Fl e
.Ar pattern
should be an exact match against the search field.
modified pkg/search.c
@@ -248,12 +248,12 @@ exec_search(int argc, char **argv)
		case 'c':	/* Same as -S comment */
			search = search_label_opt("comment");
			break;
-
		case 'D':	/* Same as -M depends-on  */
-
			opt |= modifier_opt("depends-on");
-
			break;
-
		case 'd':	/* Same as -S description */
+
		case 'D':	/* Same as -S description */
			search = search_label_opt("description");
			break;
+
		case 'd':	/* Same as -M depends-on  */
+
			opt |= modifier_opt("depends-on");
+
			break;
		case 'e':
			match = MATCH_EXACT;
			break;