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