summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-03-27 23:45:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-03-27 23:45:15 +0000
commit93ab45fc760cfc32b331229d7aab36e33650ac46 (patch)
treeae38cf3fc0617e2afc1cff6dfd58fcb19ba908c6 /usr.sbin/lpr
parent76deddc206b72ecfe50ddc6a7f4ee4ea126c25f4 (diff)
Add -q to the getopt() string and document it; Brian Ginsbach
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/lpr/lpr.16
-rw-r--r--usr.sbin/lpr/lpr/lpr.c8
2 files changed, 8 insertions, 6 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.1 b/usr.sbin/lpr/lpr/lpr.1
index 3daf8fcc978..32dd50713ea 100644
--- a/usr.sbin/lpr/lpr/lpr.1
+++ b/usr.sbin/lpr/lpr/lpr.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: lpr.1,v 1.5 2002/05/20 23:13:50 millert Exp $
+.\" $OpenBSD: lpr.1,v 1.6 2003/03/27 23:45:14 millert Exp $
.\" $NetBSD: lpr.1,v 1.10 2002/01/19 03:23:26 wiz Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -42,7 +42,7 @@
.Nd off line print
.Sh SYNOPSIS
.Nm lpr
-.Op Fl cdfghlnmprstv
+.Op Fl cdfghlmnpqrstv
.Bk -words
.Op Fl P Ns Ar printer
.Ek
@@ -134,6 +134,8 @@ is used.
Suppress the printing of the burst page.
.It Fl m
Send mail upon completion.
+.It Fl q
+Queue the print job but do not start the spooling daemon.
.It Fl r
Remove the file upon completion of spooling or upon completion of
printing (with the
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c
index 9d7164a05c2..238f193e109 100644
--- a/usr.sbin/lpr/lpr/lpr.c
+++ b/usr.sbin/lpr/lpr/lpr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpr.c,v 1.31 2003/03/25 02:15:21 millert Exp $ */
+/* $OpenBSD: lpr.c,v 1.32 2003/03/27 23:45:14 millert Exp $ */
/* $NetBSD: lpr.c,v 1.19 2000/10/11 20:23:52 is Exp $ */
/*
@@ -50,7 +50,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)lpr.c 8.4 (Berkeley) 4/28/95";
#else
-static const char rcsid[] = "$OpenBSD: lpr.c,v 1.31 2003/03/25 02:15:21 millert Exp $";
+static const char rcsid[] = "$OpenBSD: lpr.c,v 1.32 2003/03/27 23:45:14 millert Exp $";
#endif
#endif /* not lint */
@@ -160,7 +160,7 @@ main(int argc, char **argv)
openlog("lpr", 0, LOG_LPR);
while ((ch = getopt(argc, argv,
- ":#:1:2:3:4:C:J:P:T:U:cdfghi:lnmprstvw:")) != -1) {
+ ":#:1:2:3:4:C:J:P:T:U:cdfghi:lmnpqrstvw:")) != -1) {
switch (ch) {
case '#': /* n copies */
@@ -740,7 +740,7 @@ usage(void)
extern char *__progname;
fprintf(stderr,
- "usage: %s [-cdfghlnmprstv] [-Pprinter] [-#num] [-C class] "
+ "usage: %s [-cdfghlmnpqrstv] [-Pprinter] [-#num] [-C class] "
"[-J job] [-T title]\n [-U user] [-i [numcols]] "
"[-1234 font] [-wnum] [name ...]\n", __progname);
exit(1);