Changeset 7cdd65d for client/bin/gbrm
- Timestamp:
- Aug 14, 2010, 9:30:39 PM (14 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/bin/gbrm
r335786f r7cdd65d 8 8 use Net::CUPS; 9 9 use Net::CUPS::Destination; 10 use Getopt::Long; 10 11 11 my $usage = "Usage: gbq QUEUE ID\n"; 12 my $usage = "Usage: gbq [-q QUEUE] ID\n"; 13 my $q = ""; 14 GetOptions ('q|queue=s' => \$q); 12 15 13 my $q = $ARGV[0]; 14 my @ids = @ARGV[1 .. $#ARGV]; 16 my @ids = @ARGV[0 .. $#ARGV]; 15 17 16 if (!$q or !@ids) { 18 if (!$q){ 19 $q = "DEFAULT"; 20 } 21 if (!@ids) { 17 22 print $usage; 18 23 exit 1 19 24 } 25 20 26 21 27 my $configpath = "$ENV{'HOME'}/.gutenbach/$q";
Note: See TracChangeset
for help on using the changeset viewer.