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