lib/mml2wav/command.rb in mml2wav-0.0.1 vs lib/mml2wav/command.rb in mml2wav-0.0.2
- old
+ new
@@ -29,9 +29,13 @@
end
parser.on("--sampling_rate=RATE",
"Specify sampling rate", Integer) do |rate|
options[:sampling_rate] = rate
end
+ parser.on("--bpm=BPM",
+ "Specify BPM (beats per minute)", Integer) do |bpm|
+ options[:bpm] = bpm
+ end
parser.parse!(arguments)
unless File.pipe?('/dev/stdin') || IO.select([ARGF], nil, nil, 0)
puts(parser.help)
exit(true)