Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Document recursive delete and use -R to avoid confusion with -r reponame
Bryan Drewery committed 13 years ago
commit 0505b4e9d275e9da889e7368a239435ac7ae4bf1
parent ccfbc43
2 files changed +5 -3
modified pkg/delete.c
@@ -59,7 +59,7 @@ exec_delete(int argc, char **argv)
	int retcode = 1;
	int recursive = 0;

-
	while ((ch = getopt(argc, argv, "aqgxXfyr")) != -1) {
+
	while ((ch = getopt(argc, argv, "aqgxXfyR")) != -1) {
		switch (ch) {
			case 'a':
				match = MATCH_ALL;
@@ -82,7 +82,7 @@ exec_delete(int argc, char **argv)
			case 'y':
				yes = true;
				break;
-
			case 'r':
+
			case 'R':
				recursive = 1;
				break;
			default:
modified pkg/pkg-delete.8
@@ -25,7 +25,7 @@
.Nm
.Op Fl ay
.Nm
-
.Op Fl yqfgxX
+
.Op Fl yqfRgxX
.Ar <pkg-name> <...>
.Sh DESCRIPTION
.Nm
@@ -43,6 +43,8 @@ Deletes all installed packages from the system and the database.
Assume yes when asked for confirmation before package deletion.
.It Fl g
Treat the package names as shell glob patterns.
+
.It Fl R
+
Recursively delete all packages that depend on the deleted package as well.
.It Fl x
Treat the package names as regular expressions.
.It Fl X