Changeset addd785
- Timestamp:
- Oct 2, 2010, 9:38:34 PM (14 years ago)
- Branches:
- master, debian, mac, no-cups
- Children:
- ca8acb7
- Parents:
- a5cf43b
- git-author:
- Jessica B. Hamrick <jhamrick@…> (10/02/10 21:38:34)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (10/02/10 21:38:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/bin/gbr
ra5cf43b raddd785 19 19 -q, --queue Specify a queue other than the default 20 20 -d, --dryrun Just list what would be done 21 -r, -- randomRandomize the order that the songs are queued in21 -r, --shuffle Randomize the order that the songs are queued in 22 22 -h, --help Print this message 23 23 USAGE … … 27 27 my $dryrun = 0; 28 28 my $help = 0; 29 my $ random= 0;29 my $shuffle = 0; 30 30 31 31 # parse the options … … 33 33 'd|dryrun' => \$dryrun, 34 34 'h|help' => \$help, 35 ' r|random' => \$random);35 's|shuffle' => \$shuffle); 36 36 37 37 # if the -h flag was passed, then print the usage and exit … … 44 44 my @files = @ARGV[0 .. $#ARGV]; 45 45 46 # if the random flag was passed, then randomize the order of the files47 if ($ random) {46 # if the shuffle flag was passed, then shuffle the order of the files 47 if ($shuffle) { 48 48 @files = shuffle(@files); 49 49 }
Note: See TracChangeset
for help on using the changeset viewer.