Changeset 7cdd65d for client/bin/gbr


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/gbr

    r9fdf4a1 r7cdd65d  
    88use Net::CUPS;
    99use Net::CUPS::Destination;
     10use Getopt::Long;
    1011use Image::ExifTool qw(ImageInfo);
    1112
    1213my $usage = "Usage: gbr QUEUE FILES\n";
    1314
    14 my $q = $ARGV[0];
    15 my @files = @ARGV[1 .. $#ARGV];
     15my $q = "";
     16GetOptions ('q|queue=s' => \$q);
    1617
    17 if (!$q or !@files) {
     18my @files = @ARGV[0 .. $#ARGV];
     19
     20if (!$q){
     21    $q = "DEFAULT";
     22}
     23if (!@files) {
    1824    print $usage;
    1925    exit 1
Note: See TracChangeset for help on using the changeset viewer.