Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Use -A for registering automatic in pkg install
Bryan Drewery committed 13 years ago
commit 4c22b8aee28ee7a9a8441af9045a77f5ca03541b
parent 32323b7
2 files changed +5 -5
modified pkg/install.c
@@ -45,7 +45,7 @@ void
usage_install(void)
{
	fprintf(stderr,
-
	    "usage: pkg install [-dfgLnqRXxy] [-r reponame] <pkg-name> ...\n\n");
+
	    "usage: pkg install [-AfgLnqRXxy] [-r reponame] <pkg-name> ...\n\n");
	fprintf(stderr, "For more information see 'pkg help install'.\n");
}

@@ -68,9 +68,9 @@ exec_install(int argc, char **argv)
	bool force = false;
	bool dry_run = false;

-
	while ((ch = getopt(argc, argv, "dfgLnqRr:Xxy")) != -1) {
+
	while ((ch = getopt(argc, argv, "AfgLnqRr:Xxy")) != -1) {
		switch (ch) {
-
		case 'd':
+
		case 'A':
			automatic = true;
			break;
		case 'f':
modified pkg/pkg-install.8
@@ -23,7 +23,7 @@
.Nd installs packages from remote package repositories
.Sh SYNOPSIS
.Nm
-
.Op Fl dfgLnqRXxy
+
.Op Fl AfgLnqRXxy
.Op Fl r Ar reponame
.Ar <pkg-origin> ...
.Sh DESCRIPTION
@@ -107,7 +107,7 @@ package installation with
The following options are supported by
.Nm :
.Bl -tag -width F1
-
.It Fl d
+
.It Fl A
Mark the installed packages as orphan.
Will be automatically removed if no other packages depend on them.
For more information please refer to