5 warn "Usage: #$0 [(-f | --filename) FILENAME] TEST_NAME [TEST] [TEST] ..."
9 arg = ARGV.shift or usage
12 when '-f', '--filename'
13 @filename = ARGV.shift or usage
19 @filename = @name.downcase
23 %w(cpp h).each do |ext|
24 File.open("#{@name.downcase}.#{ext}",'w') do |file|
25 file.write(ERB.new(File.open("template.#{ext}.erb").read).result(binding))