diff options
Diffstat (limited to 'printutils')
-rw-r--r-- | printutils/lpd.c | 11 | ||||
-rw-r--r-- | printutils/lpr.c | 21 |
2 files changed, 32 insertions, 0 deletions
diff --git a/printutils/lpd.c b/printutils/lpd.c index 157cbe8..115552e 100644 --- a/printutils/lpd.c +++ b/printutils/lpd.c @@ -70,6 +70,17 @@ * mv -f ./"$DATAFILE" save/ */ +//usage:#define lpd_trivial_usage +//usage: "SPOOLDIR [HELPER [ARGS]]" +//usage:#define lpd_full_usage "\n\n" +//usage: "SPOOLDIR must contain (symlinks to) device nodes or directories" +//usage: "\nwith names matching print queue names. In the first case, jobs are" +//usage: "\nsent directly to the device. Otherwise each job is stored in queue" +//usage: "\ndirectory and HELPER program is called. Name of file to print" +//usage: "\nis passed in $DATAFILE variable." +//usage: "\nExample:" +//usage: "\n tcpsvd -E 0 515 softlimit -m 999999 lpd /var/spool ./print" + #include "libbb.h" // strip argument of bad chars diff --git a/printutils/lpr.c b/printutils/lpr.c index 2849179..f8ee9a1 100644 --- a/printutils/lpr.c +++ b/printutils/lpr.c @@ -11,6 +11,27 @@ * * See RFC 1179 for protocol description. */ + +//usage:#define lpr_trivial_usage +//usage: "-P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]..." +/* -C CLASS exists too, not shown. + * CLASS is supposed to be printed on banner page, if one is requested */ +//usage:#define lpr_full_usage "\n\n" +//usage: "Options:" +//usage: "\n -P lp service to connect to (else uses $PRINTER)" +//usage: "\n -m Send mail on completion" +//usage: "\n -h Print banner page too" +//usage: "\n -V Verbose" +//usage: +//usage:#define lpq_trivial_usage +//usage: "[-P queue[@host[:port]]] [-U USERNAME] [-d JOBID]... [-fs]" +//usage:#define lpq_full_usage "\n\n" +//usage: "Options:" +//usage: "\n -P lp service to connect to (else uses $PRINTER)" +//usage: "\n -d Delete jobs" +//usage: "\n -f Force any waiting job to be printed" +//usage: "\n -s Short display" + #include "libbb.h" /* |