47 lines
1.5 KiB
Diff
47 lines
1.5 KiB
Diff
--- cups-1.2.4/berkeley/lpr.c.lpr-help 2006-09-27 14:44:34.000000000 +0100
|
|
+++ cups-1.2.4/berkeley/lpr.c 2006-09-27 14:59:16.000000000 +0100
|
|
@@ -58,6 +58,30 @@
|
|
|
|
char tempfile[1024]; /* Temporary file for printing from stdin */
|
|
|
|
+static void
|
|
+usage (const char *name)
|
|
+{
|
|
+ _cupsLangPrintf(stdout,
|
|
+"Usage: %s [OPTION] [ file(s) ]\n"
|
|
+"Print files.\n\n"
|
|
+" -E force encryption\n"
|
|
+" -H server[:port] specify alternate server\n"
|
|
+" -C title, -J title, -T title\n"
|
|
+" set the job name\n\n"
|
|
+" -P destination/instance print to named printer\n"
|
|
+" -U username specify alternate username\n"
|
|
+" -# num-copies set number of copies\n"
|
|
+" -h disable banner printing\n"
|
|
+" -l print without filtering\n"
|
|
+" -m send email on completion\n"
|
|
+" -o option[=value] set a job option\n"
|
|
+" -p format text file with header\n"
|
|
+" -q hold job for printing\n"
|
|
+" -r delete files after printing\n"
|
|
+"\nWith no file given, read standard input.\n"
|
|
+, name);
|
|
+}
|
|
+
|
|
|
|
/*
|
|
* 'main()' - Parse options and send files for printing.
|
|
@@ -324,6 +348,12 @@
|
|
break;
|
|
|
|
default :
|
|
+ if (!strcmp (argv[i], "--help"))
|
|
+ {
|
|
+ usage (argv[0]);
|
|
+ return (0);
|
|
+ }
|
|
+
|
|
_cupsLangPrintf(stderr,
|
|
_("%s: Error - unknown option \'%c\'!\n"),
|
|
argv[0], argv[i][1]);
|