summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-06-05 13:56:07 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-06-05 13:56:07 +0000
commit01c836de03bdcf666913e896238616e908ecc320 (patch)
treea0542a8dc552ecfb3a33cb801dbb085a45c4873f /usr.sbin/pkg_add
parent8425fbbce18b31e191b3b596ae6a1df048d49a76 (diff)
usage line and error out if pkg foo.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/pkg4
-rw-r--r--usr.sbin/pkg_add/pkg.17
2 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/pkg b/usr.sbin/pkg_add/pkg
index 16ea03fd0cd..4600086c178 100644
--- a/usr.sbin/pkg_add/pkg
+++ b/usr.sbin/pkg_add/pkg
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg,v 1.14 2010/06/05 12:30:36 espie Exp $
+# $OpenBSD: pkg,v 1.15 2010/06/05 13:56:06 espie Exp $
#
# Copyright (c) 2010 Marc Espie <espie@openbsd.org>
#
@@ -44,3 +44,5 @@ for my $i (@l) {
run($i);
}
}
+print STDERR "Usage: pkg [",join("|", @l),"] [args]\n";
+exit(1);
diff --git a/usr.sbin/pkg_add/pkg.1 b/usr.sbin/pkg_add/pkg.1
index d3ce20f8127..5658a08a03d 100644
--- a/usr.sbin/pkg_add/pkg.1
+++ b/usr.sbin/pkg_add/pkg.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pkg.1,v 1.6 2010/06/05 12:30:36 espie Exp $
+.\" $OpenBSD: pkg.1,v 1.7 2010/06/05 13:56:06 espie Exp $
.\"
.\" Copyright (c) 2010 Marc Espie <espie@openbsd.org>
.\"
@@ -26,6 +26,7 @@ is the actual script that starts
.Xr pkg_add 1 ,
.Xr pkg_create 1 ,
.Xr pkg_delete 1 ,
+.Xr pkg_fsck 8 ,
and
.Xr pkg_info 1 .
.Pp
@@ -33,6 +34,7 @@ It can be invoked as a link to those commands, or with
.Ar add ,
.Ar create ,
.Ar delete ,
+.Ar fsck ,
.Ar info
as first argument.
.Pp
@@ -41,6 +43,7 @@ Refer to the documentation of those commands for further info.
.Xr pkg_add 1 ,
.Xr pkg_create 1 ,
.Xr pkg_delete 1 ,
-.Xr pkg_info 1
+.Xr pkg_info 1 ,
+.Xr pkg_fsck 8
.Sh AUTHORS
This program was written by Marc Espie.