summaryrefslogtreecommitdiff
path: root/usr.bin/apply
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-12-24 11:22:55 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-12-24 11:22:55 +0000
commita19fd1f3ec604d4b014ee0d7adf7999a16737573 (patch)
tree81069068eda169f9354762a64d97948544f05d4d /usr.bin/apply
parent69c8731d4b68b0694214956b532df8a50cc2afcc (diff)
Sync usage() with man page.
Diffstat (limited to 'usr.bin/apply')
-rw-r--r--usr.bin/apply/apply.110
-rw-r--r--usr.bin/apply/apply.c7
2 files changed, 8 insertions, 9 deletions
diff --git a/usr.bin/apply/apply.1 b/usr.bin/apply/apply.1
index 77308a9c15f..fbb79be0cd2 100644
--- a/usr.bin/apply/apply.1
+++ b/usr.bin/apply/apply.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: apply.1,v 1.13 2000/11/10 05:10:21 aaron Exp $
+.\" $OpenBSD: apply.1,v 1.14 2000/12/24 11:22:53 aaron Exp $
.\" $NetBSD: apply.1,v 1.4 1996/03/18 23:16:57 jtc Exp $
.\"
.\" Copyright (c) 1983, 1990, 1993
@@ -42,8 +42,8 @@
.Nd apply a command to a set of arguments
.Sh SYNOPSIS
.Nm apply
-.Op Fl a Ns Ar c
-.Op Fl Ns Ar #
+.Op Fl Ar #
+.Op Fl a Ar magic
.Op Fl d
.Ar command argument
.Op Ar ...
@@ -88,9 +88,9 @@ occur in
the
.Fl Ns Ar #
option is ignored.
-.It Fl a Ns Ar c
+.It Fl a Ar magic
Use
-.Ar c
+.Ar magic
as the magic character instead of the default
.Ql % .
.It Fl d
diff --git a/usr.bin/apply/apply.c b/usr.bin/apply/apply.c
index ffd79d7952b..079b955f491 100644
--- a/usr.bin/apply/apply.c
+++ b/usr.bin/apply/apply.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apply.c,v 1.7 2000/11/20 14:07:06 deraadt Exp $ */
+/* $OpenBSD: apply.c,v 1.8 2000/12/24 11:22:54 aaron Exp $ */
/* $NetBSD: apply.c,v 1.3 1995/03/25 03:38:23 glass Exp $ */
/*-
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)apply.c 8.4 (Berkeley) 4/4/94";
#else
-static char rcsid[] = "$OpenBSD: apply.c,v 1.7 2000/11/20 14:07:06 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: apply.c,v 1.8 2000/12/24 11:22:54 aaron Exp $";
#endif
#endif /* not lint */
@@ -233,8 +233,7 @@ system(command)
void
usage()
{
-
(void)fprintf(stderr,
- "usage: apply [-a magic] [-0123456789] [-d] command arguments [...]\n");
+ "usage: apply [-#] [-a magic] [-d] command argument [...]\n");
exit(1);
}