summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/info/main.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-07 04:17:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-07 04:17:53 +0000
commit9230450da733daf4720c63a1ba94f4d86c580c52 (patch)
tree4c71877ebc0441ea59c3a4ec913fccd478bf471e /usr.sbin/pkg_install/info/main.c
parent38defaccee7309efb4cb43c18cbe752e81fe0837 (diff)
cleanup usage even more; very annoying
Diffstat (limited to 'usr.sbin/pkg_install/info/main.c')
-rw-r--r--usr.sbin/pkg_install/info/main.c28
1 files changed, 6 insertions, 22 deletions
diff --git a/usr.sbin/pkg_install/info/main.c b/usr.sbin/pkg_install/info/main.c
index a435b3cd14f..2246465b677 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.8 1998/04/04 22:44:20 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.9 1998/04/07 04:17:52 deraadt Exp $ */
#ifndef lint
-static char *rcsid = "$OpenBSD: main.c,v 1.8 1998/04/04 22:44:20 deraadt Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.9 1998/04/07 04:17:52 deraadt Exp $";
#endif
/*
@@ -155,27 +155,11 @@ usage(const char *name, const char *fmt, ...)
if (fmt) {
fprintf(stderr, "%s: ", name);
vfprintf(stderr, fmt, args);
- fprintf(stderr, "\n\n");
+ fprintf(stderr, "\n");
}
va_end(args);
- fprintf(stderr, "Usage: %s [args] pkg [ .. pkg ]\n", name);
- fprintf(stderr, "\t-a show all installed packages (if any)\n");
- fprintf(stderr, "\t-I print 'index' of packages\n");
- fprintf(stderr, "\t-c print `one line comment'\n");
- fprintf(stderr, "\t-d print description\n");
- fprintf(stderr, "\t-D print install notice\n");
- fprintf(stderr, "\t-f show packing list\n");
- fprintf(stderr, "\t-i show install script\n");
- fprintf(stderr, "\t-k show deinstall script\n");
- fprintf(stderr, "\t-r show requirements script\n");
- fprintf(stderr, "\t-R show packages depending on this package\n");
- fprintf(stderr, "\t-p show prefix\n");
- fprintf(stderr, "\t-l <str> Prefix each info catagory with <str>\n");
- fprintf(stderr, "\t-L show installed files\n");
- fprintf(stderr, "\t-q minimal output (``quiet'' mode)\n");
- fprintf(stderr, "\t-v show all information\n");
- fprintf(stderr, "\t-t temp use temp as template for mktemp()\n");
- fprintf(stderr, "\t-e pkg returns 0 if pkg is installed, 1 otherwise\n");
- fprintf(stderr, "\t[default: args = -a -I]\n");
+ fprintf(stderr,
+ "usage: %s [-a] [-cdDikrRpLqImv] [-e package] [-l prefix] pkg ...\n",
+ name);
exit(1);
}