Changeset 7cdd65d for client/bin/gbq


Ignore:
Timestamp:
Aug 14, 2010, 9:30:39 PM (14 years ago)
Author:
Kyle Brogle <broglek@…>
Branches:
master, debian, mac, no-cups
Children:
618236b, 9dee329
Parents:
55b24d1
git-author:
Kyle Brogle <broglek@…> (08/14/10 21:30:39)
git-committer:
Kyle Brogle <broglek@…> (08/14/10 21:30:39)
Message:

Implemented default queue in client scripts.
Queue argument now optional for gb{r,rm,q}, and also takes form of -q QUEUE
now.

gutenbach-client-config -sset-default QUEUE will set default queue

Updated manpages accordingly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/bin/gbq

    r9fdf4a1 r7cdd65d  
    88use Net::CUPS;
    99use Net::CUPS::Destination;
     10use Getopt::Long;
    1011
    11 my $usage = "Usage: gbq QUEUE\n";
     12my $usage = "Usage: gbq [-q QUEUE]\n";
    1213
    13 my $q = $ARGV[0];
     14my $q = "";
     15GetOptions ('q|queue=s' => \$q);
    1416
    1517if (!$q) {
    16     print $usage;
    17     exit 1
     18    $q = "DEFAULT";
    1819}
    1920
Note: See TracChangeset for help on using the changeset viewer.