4863845
--- cups-1.2.4/berkeley/lpr.c.lpr-help	2006-09-27 14:44:34.000000000 +0100
4863845
+++ cups-1.2.4/berkeley/lpr.c	2006-09-27 14:59:16.000000000 +0100
4863845
@@ -58,6 +58,30 @@
4863845
 
4863845
 char	tempfile[1024];		/* Temporary file for printing from stdin */
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
+
4863845
 
4863845
 /*
4863845
  * 'main()' - Parse options and send files for printing.
4863845
@@ -324,6 +348,12 @@
4863845
 	    break;
4863845
 
4863845
 	default :
4863845
+	    if (!strcmp (argv[i], "--help"))
4863845
+	    {
4863845
+	      usage (argv[0]);
4863845
+	      return (0);
4863845
+	    }
4863845
+
4863845
 	    _cupsLangPrintf(stderr,
4863845
 	                    _("%s: Error - unknown option \'%c\'!\n"),
4863845
 			    argv[0], argv[i][1]);