Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Document the -v option of pkg(1)
Marin Atanasov Nikolov committed 14 years ago
commit 7770c5e8572b874bcd7e825181ab6c38cb1685cf
parent 2511d46
2 files changed +7 -2
modified pkg/main.c
@@ -70,11 +70,12 @@ const unsigned int cmd_len = (sizeof(cmd)/sizeof(cmd[0]));
static void
usage(void)
{
-
	fprintf(stderr, "usage: pkg [-d] [-j <jail name or id>|-c <chroot path>] <command> [<args>]\n\n");
+
	fprintf(stderr, "usage: pkg [-v] [-d] [-j <jail name or id>|-c <chroot path>] <command> [<args>]\n\n");
	fprintf(stderr, "Global options supported:\n");
	fprintf(stderr, "\t%-15s%s\n", "-d", "Increment debug level");
	fprintf(stderr, "\t%-15s%s\n", "-j", "Execute pkg(1) inside a jail(8)");
-
	fprintf(stderr, "\t%-15s%s\n\n", "-c", "Execute pkg(1) inside a chroot(8)");
+
	fprintf(stderr, "\t%-15s%s\n", "-c", "Execute pkg(1) inside a chroot(8)");
+
	fprintf(stderr, "\t%-15s%s\n\n", "-v", "Display pkg(1) version");
	fprintf(stderr, "Commands supported:\n");

	for (unsigned int i = 0; i < cmd_len; i++) 
modified pkg/pkg.1
@@ -23,6 +23,7 @@
.Nd a utility for manipulating packages 
.Sh SYNOPSIS
.Nm
+
.Op Fl v
.Op Fl d
.Op Fl j Ao jail name or id Ac | Fl c Ao chroot path Ac
.Ao command Ac Ao Ar flags Ac
@@ -34,6 +35,9 @@ adding, removing and upgrading of packages.
The following options are supported by
.Nm:
.Bl -tag -width indent
+
.It Fl v
+
Displays the current version of
+
.Nm
.It Fl d
Show debug informations
.It Fl j Ao jail name or id Ac