]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Added -o option to lpr command.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 7 Jul 1999 13:44:12 +0000 (13:44 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 7 Jul 1999 13:44:12 +0000 (13:44 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@490 7a7537e8-13f0-0310-91df-b6672ffda945

berkeley/lpr.c

index 4dc51bb164bd2e8d4e2875ffcc32ef48ada5d5e2..fe03869d7f75944115188baba2d3c7b2fbabf3ed 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lpr.c,v 1.1 1999/05/13 20:39:59 mike Exp $"
+ * "$Id: lpr.c,v 1.2 1999/07/07 13:44:12 mike Exp $"
  *
  *   "lpr" command for the Common UNIX Printing System (CUPS).
  *
@@ -84,6 +84,16 @@ main(int  argc,              /* I - Number of command-line arguments */
                    argv[i][1]);
            break;
 
+       case 'o' : /* Option */
+           if (argv[i][2] != '\0')
+             num_options = cupsParseOptions(argv[i] + 2, num_options, &options);
+           else
+           {
+             i ++;
+             num_options = cupsParseOptions(argv[i], num_options, &options);
+           }
+           break;
+
        case 'l' : /* Literal/raw */
             num_options = cupsParseOptions("raw", num_options, &options);
            break;
@@ -228,5 +238,5 @@ main(int  argc,             /* I - Number of command-line arguments */
 
 
 /*
- * End of "$Id: lpr.c,v 1.1 1999/05/13 20:39:59 mike Exp $".
+ * End of "$Id: lpr.c,v 1.2 1999/07/07 13:44:12 mike Exp $".
  */