Skip to content

Commit

Permalink
fix --version output
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Apr 13, 2024
1 parent ca4144a commit 6b3de4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/synvert/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def run_option_parser(args)
@options[:command] = 'test_bundle_gems'
end
opts.on '-v', '--version', 'show this version' do
puts "#{VERSION} (with synvert-core #{Core::VERSION}"
puts "#{VERSION} (with synvert-core #{Core::VERSION})"
exit
end
end
Expand Down
3 changes: 1 addition & 2 deletions lib/synvert/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ def query_available_rewriters(query, format)
if format == 'json'
puts available_rewriters.select { |rewriter|
rewriter[:group].include?(query) || rewriter[:name].include?(query)
}
.to_json
}.to_json
else
Core::Rewriter.availables.each do |group, rewriters|
if group.include?(query)
Expand Down

0 comments on commit 6b3de4a

Please sign in to comment.