lib/synvert/cli.rb in synvert-1.6.4 vs lib/synvert/cli.rb in synvert-1.7.0
- old
+ new
@@ -141,11 +141,16 @@
Core::Configuration.single_quote = false
end
opts.on '--tab-width TAB_WIDTH', 'prefer tab width, it uses 2 by default' do |tab_width|
Core::Configuration.tab_width = tab_width.to_i
end
- opts.on '--loose', 'loose mode, it ignores ruby version and gem version check, it uses strict mode by default' do |_loose|
+ opts.on '--loose',
+ 'loose mode, it ignores ruby version and gem version check, it uses strict mode by default' do |_loose|
Core::Configuration.strict = false
+ end
+ opts.on '--test-result TEST_RESULT',
+ 'result format of test, it can be actions or new_source, action is by default' do |test_result|
+ Core::Configuration.test_result = test_result
end
opts.on '-v', '--version', 'show this version' do
puts "#{VERSION} (with synvert-core #{Core::VERSION} and parser #{Parser::VERSION})"
exit
end