cb06f24
diff -up cups-1.4b1/berkeley/lpr.c.lpr-help cups-1.4b1/berkeley/lpr.c
cb06f24
--- cups-1.4b1/berkeley/lpr.c.lpr-help	2008-07-11 23:46:21.000000000 +0100
cb06f24
+++ cups-1.4b1/berkeley/lpr.c	2008-11-11 16:20:32.000000000 +0000
cb06f24
@@ -30,6 +30,31 @@
cb06f24
 #include <cups/i18n.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
  */
cb06f24
@@ -54,7 +79,6 @@ main(int  argc,				/* I - Number of comm
cb06f24
   int		deletefile;		/* Delete file after print? */
cb06f24
   char		buffer[8192];		/* Copy buffer */
cb06f24
 
cb06f24
-
cb06f24
   _cupsSetLocale(argv);
cb06f24
 
cb06f24
   deletefile  = 0;
cb06f24
@@ -282,6 +306,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,
4863845
 	                    _("%s: Error - unknown option \'%c\'!\n"),
4863845
 			    argv[0], argv[i][1]);