832a0e
--- cups-1.2.4/berkeley/lpr.c.lpr-help	2006-09-27 14:44:34.000000000 +0100
832a0e
+++ cups-1.2.4/berkeley/lpr.c	2006-09-27 14:59:16.000000000 +0100
832a0e
@@ -58,6 +58,30 @@
832a0e
 
832a0e
 char	tempfile[1024];		/* Temporary file for printing from stdin */
832a0e
 
832a0e
+static void
832a0e
+usage (const char *name)
832a0e
+{
832a0e
+  _cupsLangPrintf(stdout,
832a0e
+"Usage: %s [OPTION] [ file(s) ]\n"
832a0e
+"Print files.\n\n"
832a0e
+"  -E                       force encryption\n"
832a0e
+"  -H server[:port]         specify alternate server\n"
832a0e
+"  -C title, -J title, -T title\n"
832a0e
+"                           set the job name\n\n"
832a0e
+"  -P destination/instance  print to named printer\n"
832a0e
+"  -U username              specify alternate username\n"
832a0e
+"  -# num-copies            set number of copies\n"
832a0e
+"  -h                       disable banner printing\n"
832a0e
+"  -l                       print without filtering\n"
832a0e
+"  -m                       send email on completion\n"
832a0e
+"  -o option[=value]        set a job option\n"
832a0e
+"  -p                       format text file with header\n"
832a0e
+"  -q                       hold job for printing\n"
832a0e
+"  -r                       delete files after printing\n"
832a0e
+"\nWith no file given, read standard input.\n"
832a0e
+, name);
832a0e
+}
832a0e
+
832a0e
 
832a0e
 /*
832a0e
  * 'main()' - Parse options and send files for printing.
832a0e
@@ -324,6 +348,12 @@
832a0e
 	    break;
832a0e
 
832a0e
 	default :
832a0e
+	    if (!strcmp (argv[i], "--help"))
832a0e
+	    {
832a0e
+	      usage (argv[0]);
832a0e
+	      return (0);
832a0e
+	    }
832a0e
+
832a0e
 	    _cupsLangPrintf(stderr,
832a0e
 	                    _("%s: Error - unknown option \'%c\'!\n"),
832a0e
 			    argv[0], argv[i][1]);