Changeset fc8707b for client/bin/gutenbach-client-config
- Timestamp:
- Oct 2, 2010, 9:20:02 PM (15 years ago)
- Branches:
- master, debian, mac, no-cups
- Children:
- a5cf43b
- Parents:
- 6b7441a
- git-author:
- Jessica B. Hamrick <jhamrick@…> (10/02/10 21:20:02)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (10/02/10 21:20:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/bin/gutenbach-client-config
r6b7441a rfc8707b 10 10 # the usage for the program 11 11 my $usage = <<USAGE; 12 Usage: gutenbach-client-config [ -l|--list|-a|--add|-d|--delete] [QUEUE] [--host=HOST]12 Usage: gutenbach-client-config [options] 13 13 14 14 -l, --list List available queues … … 16 16 -d, --delete QUEUE Delete a queue 17 17 -s, --set-default QUEUE Set the default queue 18 -h, --host HOST Hostname for the queue 18 -h, --host HOST Hostname for the queue (must be used with -a) 19 -H, --help Print this message 19 20 USAGE 20 21 … … 25 26 my $host = ""; 26 27 my $default = ""; 28 my $help = 0; 27 29 28 30 # get the options from the command line … … 31 33 'a|add=s' => \$add, 32 34 'd|delete=s' => \$delete, 33 'h|host=s' => \$host); 35 'h|host=s' => \$host, 36 'H|help' => \$help); 37 38 # if the -H flag was passed, then print the usage and exit 39 if ($help) { 40 print $usage; 41 exit 0; 42 } 34 43 35 44 # set the path where the configuration files live
Note: See TracChangeset
for help on using the changeset viewer.