|
|
1d75c0 |
diff -up cups-2.2b2/berkeley/lpr.c.lpr-help cups-2.2b2/berkeley/lpr.c
|
|
|
1d75c0 |
--- cups-2.2b2/berkeley/lpr.c.lpr-help 2016-06-24 17:43:35.000000000 +0200
|
|
|
1d75c0 |
+++ cups-2.2b2/berkeley/lpr.c 2016-06-27 15:11:30.646348752 +0200
|
|
|
1d75c0 |
@@ -18,6 +18,31 @@
|
|
|
1d75c0 |
#include <cups/cups-private.h>
|
|
|
1d75c0 |
|
|
|
1d75c0 |
|
|
|
1d75c0 |
+static void
|
|
|
1d75c0 |
+usage (const char *name)
|
|
|
1d75c0 |
+{
|
|
|
1d75c0 |
+ _cupsLangPrintf(stdout,
|
|
|
1d75c0 |
+"Usage: %s [OPTION] [ file(s) ]\n"
|
|
|
1d75c0 |
+"Print files.\n\n"
|
|
|
1d75c0 |
+" -E force encryption\n"
|
|
|
1d75c0 |
+" -H server[:port] specify alternate server\n"
|
|
|
1d75c0 |
+" -C title, -J title, -T title\n"
|
|
|
1d75c0 |
+" set the job name\n\n"
|
|
|
1d75c0 |
+" -P destination/instance print to named printer\n"
|
|
|
1d75c0 |
+" -U username specify alternate username\n"
|
|
|
1d75c0 |
+" -# num-copies set number of copies\n"
|
|
|
1d75c0 |
+" -h disable banner printing\n"
|
|
|
1d75c0 |
+" -l print without filtering\n"
|
|
|
1d75c0 |
+" -m send email on completion\n"
|
|
|
1d75c0 |
+" -o option[=value] set a job option\n"
|
|
|
1d75c0 |
+" -p format text file with header\n"
|
|
|
1d75c0 |
+" -q hold job for printing\n"
|
|
|
1d75c0 |
+" -r delete files after printing\n"
|
|
|
1d75c0 |
+"\nWith no file given, read standard input.\n"
|
|
|
1d75c0 |
+, name);
|
|
|
1d75c0 |
+}
|
|
|
1d75c0 |
+
|
|
|
1d75c0 |
+
|
|
|
1d75c0 |
/*
|
|
|
1d75c0 |
* 'main()' - Parse options and send files for printing.
|
|
|
1d75c0 |
*/
|
|
|
1d75c0 |
@@ -281,6 +306,12 @@ main(int argc, /* I - Number of comm
|
|
|
1d75c0 |
break;
|
|
|
1d75c0 |
|
|
|
1d75c0 |
default :
|
|
|
1d75c0 |
+ if (!strcmp (argv[i], "--help"))
|
|
|
1d75c0 |
+ {
|
|
|
1d75c0 |
+ usage (argv[0]);
|
|
|
1d75c0 |
+ return (0);
|
|
|
1d75c0 |
+ }
|
|
|
1d75c0 |
+
|
|
|
1d75c0 |
_cupsLangPrintf(stderr, _("%s: Error - unknown option \"%c\"."), argv[0], *opt);
|
|
|
1d75c0 |
return (1);
|
|
|
1d75c0 |
}
|