bin/ovaltine in ovaltine-1.0.2 vs bin/ovaltine in ovaltine-1.0.4
- old
+ new
@@ -10,12 +10,12 @@
require 'ovaltine'
require 'optparse'
parser_options = {
- :output_directory => '.',
- :prefix => ''
+ :prefix => '',
+ :language => 'objc'
}
def exit_with_error(message)
$stderr.puts "[!] #{message}. Run `ovaltine --help` for available options"
exit 1
@@ -27,17 +27,20 @@
parser_options[:project] = path
end
opts.on('-o', '--output DIR', 'Specify output directory. Default is pwd') do |path|
parser_options[:output_directory] = path
end
- opts.on('--prefix PREFIX', 'Class prefix for generated files') do |prefix|
+ opts.on('--prefix PREFIX', 'Specify class prefix for generated files') do |prefix|
parser_options[:prefix] = prefix
end
opts.on('--auto-add', 'Automatically add generated files to the Xcode project') do
parser_options[:auto_add] = true
end
opts.on('--auto-replace', 'Automatically replace files with the same name as generated files') do
parser_options[:auto_replace] = true
+ end
+ opts.on('--objc', 'Specify Objective-C as the template language (Default)') do
+ parser_options[:language] = 'objc'
end
opts.on_tail('-h', '--help', 'Show this message') { puts opts; exit }
opts.on_tail("-v", "--version", "Show version") { puts Ovaltine::VERSION; exit }
opts.parse!
end