Skip to content

Commit

Permalink
allow --rand to take a string. Make full name --randomize.
Browse files Browse the repository at this point in the history
  • Loading branch information
quix committed Sep 13, 2008
1 parent c8de9d3 commit 753637a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2282,12 +2282,12 @@ def standard_rake_options
['--threads', '-j N', "Specifies the number of threads to run simultaneously.",
lambda { |value| self.num_threads = value.to_i }
],
['--rand[=SEED]', "Randomize task prerequisite orders",
['--randomize[=SEED]', "Randomize task prerequisite orders",
lambda { |value|
MultiTask.class_eval { remove_method(:invoke_prerequisites) }
options.randomize = true
if value
srand(value.to_i)
srand(value.hash)
end
}
],
Expand Down

0 comments on commit 753637a

Please sign in to comment.