Blame SOURCES/cups-lpr-help.patch

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