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