Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Merge pull request #200 from bdrewery/199-pkg-check-usage
Baptiste Daroussin committed 14 years ago
commit 3fcffc830cd12444e8776029d6b3e6335d42ccbe
parent 5add56b60afb6cb918a261bd6219c1bf5b0f7565
2 files changed +29 -18
modified pkg/check.c
@@ -250,9 +250,10 @@ check_summary(struct pkgdb *db, struct deps_head *dh)
void
usage_check(void)
{
-
	fprintf(stderr, "usage: pkg check [-yadsr]\n");
-
	fprintf(stderr, "       pkg check [-ygxXdsr] <pattern>\n\n");
-
	fprintf(stderr, "For more information see 'pkg help check'.\n");
+
	fprintf(stderr, "usage: pkg check -d [-y] [-a | -gxX <pattern>]\n");
+
	fprintf(stderr, "       pkg check -r [-y] [-a | -gxX <pattern>]\n");
+
	fprintf(stderr, "       pkg check -s [-y] [-a | -gxX <pattern>]\n");
+
	fprintf(stderr, "\nFor more information see 'pkg help check'.\n");
}

int
modified pkg/pkg-check.8
@@ -23,38 +23,48 @@
.Nd sanity checks installed packages
.Sh SYNOPSIS
.Nm
-
.Op Fl yadsr
+
.Fl d
+
.Op Fl y
+
.Op Fl a | gxX Ar <pattern>
.Nm
-
.Op Fl ygxXdsr
-
.Ar <pattern>
+
.Fl r
+
.Op Fl y
+
.Op Fl a | gxX Ar <pattern>
+
.Nm
+
.Fl s
+
.Op Fl y
+
.Op Fl a | gxX Ar <pattern>
.Sh DESCRIPTION
.Nm
-
is used to check for and install missing dependencies, find invalid checksums, or recompute sizes of installed packages.
+
.Fl d
+
is used to check for and install missing dependencies.
+
.Pp
+
.Nm
+
.Fl r
+
is used to recompute sizes of installed packages.
+
.Pp
+
.Nm
+
.Fl s
+
is used to find invalid checksums for installed packages.
.Sh OPTIONS
The following options are supported by
.Nm :
.Bl -tag -width F1
-
.It Fl a
-
Process all packages.
.It Fl y
Assume yes when asked for confirmation before installing missing dependencies.
-
.It Fl d
-
Check for missing dependencies of matched packages.
-
.It Fl s
-
Show matched packages that do not match the stored checksum.
-
.It Fl r
-
Recomputes the flat size in bytes of the matched packages.
+
.It Fl a
+
Process all packages.
.It Fl g
Treat
-
.Ar <pkg-name>
+
.Ar <pattern>
as a shell glob pattern.
.It Fl x
Treat
-
.Ar <pkg-name>
+
.Ar <pattern>
as a regular expression.
.It Fl X
Treat
-
.Ar <pkg-name>
+
.Ar <pattern>
as an extended regular expression.
.El
.Sh ENVIRONMENT