Blame SOURCES/cups-lpr-help.patch

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