Changeset addd785 for client


Ignore:
Timestamp:
Oct 2, 2010, 9:38:34 PM (13 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
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)
Message:
Change '-rrandom' to '-sshuffle'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/bin/gbr

    ra5cf43b raddd785  
    1919        -q, --queue             Specify a queue other than the default
    2020        -d, --dryrun            Just list what would be done
    21         -r, --random            Randomize the order that the songs are queued in
     21        -r, --shuffle           Randomize the order that the songs are queued in
    2222        -h, --help              Print this message
    2323USAGE
     
    2727my $dryrun = 0;
    2828my $help = 0;
    29 my $random = 0;
     29my $shuffle = 0;
    3030
    3131# parse the options
     
    3333            'd|dryrun' => \$dryrun,
    3434            'h|help' => \$help,
    35             'r|random' => \$random);
     35            's|shuffle' => \$shuffle);
    3636
    3737# if the -h flag was passed, then print the usage and exit
     
    4444my @files = @ARGV[0 .. $#ARGV];
    4545
    46 # if the random flag was passed, then randomize the order of the files
    47 if ($random) {
     46# if the shuffle flag was passed, then shuffle the order of the files
     47if ($shuffle) {
    4848    @files = shuffle(@files);
    4949}
Note: See TracChangeset for help on using the changeset viewer.