4743e1
diff -up cups-1.5b1/berkeley/lpr.c.lpr-help cups-1.5b1/berkeley/lpr.c
4743e1
--- cups-1.5b1/berkeley/lpr.c.lpr-help	2011-03-21 23:02:00.000000000 +0100
4743e1
+++ cups-1.5b1/berkeley/lpr.c	2011-05-23 17:58:06.000000000 +0200
4743e1
@@ -24,6 +24,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
  */
4743e1
@@ -270,6 +294,12 @@ main(int  argc,				/* I - Number of comm
486384
 	    break;
486384
 
486384
 	default :
486384
+	    if (!strcmp (argv[i], "--help"))
486384
+	    {
486384
+	      usage (argv[0]);
486384
+	      return (0);
486384
+	    }
486384
+
486384
 	    _cupsLangPrintf(stderr,
4743e1
 	                    _("%s: Error - unknown option \"%c\"."), argv[0],
4743e1
 			    argv[i][1]);