summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-28 18:55:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-28 18:55:26 +0000
commit4f9aa2f73974e60c9a02dc84a916fd08703f8d90 (patch)
tree9942d858d9287c6ed4a77582e6d6a329ab9e3db2 /usr.sbin
parent98b2136548e1ec85e7ef1dd69dd9f16335f627e6 (diff)
nice usage messages
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_install/add/main.c9
-rw-r--r--usr.sbin/pkg_install/info/main.c11
2 files changed, 9 insertions, 11 deletions
diff --git a/usr.sbin/pkg_install/add/main.c b/usr.sbin/pkg_install/add/main.c
index 42f8d2d20f6..e7359a3cc44 100644
--- a/usr.sbin/pkg_install/add/main.c
+++ b/usr.sbin/pkg_install/add/main.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: main.c,v 1.9 1998/10/13 23:09:49 marc Exp $ */
+/* $OpenBSD: main.c,v 1.10 1999/02/28 18:55:24 deraadt Exp $ */
#ifndef lint
-static char *rcsid = "$OpenBSD: main.c,v 1.9 1998/10/13 23:09:49 marc Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.10 1999/02/28 18:55:24 deraadt Exp $";
#endif
/*
@@ -161,8 +161,7 @@ main(int argc, char **argv)
static void
usage()
{
- fprintf(stderr, "%s\n%s\n",
- "usage: pkg_add [-vInfRMS] [-t template] [-p prefix]",
- " pkg-name [pkg-name ...]");
+ fprintf(stderr, "%s\n",
+ "usage: pkg_add [-vInfRMS] [-t template] [-p prefix] pkg-name ...");
exit(1);
}
diff --git a/usr.sbin/pkg_install/info/main.c b/usr.sbin/pkg_install/info/main.c
index 1122ea9b0fa..55411bc39c9 100644
--- a/usr.sbin/pkg_install/info/main.c
+++ b/usr.sbin/pkg_install/info/main.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: main.c,v 1.11 1998/10/13 23:09:51 marc Exp $ */
+/* $OpenBSD: main.c,v 1.12 1999/02/28 18:55:25 deraadt Exp $ */
#ifndef lint
-static char *rcsid = "$OpenBSD: main.c,v 1.11 1998/10/13 23:09:51 marc Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.12 1999/02/28 18:55:25 deraadt Exp $";
#endif
/*
@@ -156,9 +156,8 @@ main(int argc, char **argv)
static void
usage()
{
- fprintf(stderr, "%s\n%s\n%s\n",
- "usage: pkg_info [-cDdfIikLmpqRrvh] [-e package] [-l prefix]",
- " pkg-name [pkg-name ...]",
- " pkg_info -a [flags]");
+ fprintf(stderr, "usage: %s\nusage: %s\n",
+ "pkg_info [-cDdfIikLmpqRrvh] [-e package] [-l prefix] pkg-name ...",
+ "pkg_info -a [flags]");
exit(1);
}