lib/rouge/cli.rb in rouge-0.0.11 vs lib/rouge/cli.rb in rouge-0.0.12

- old
+ new

@@ -10,9 +10,14 @@ module Rouge class CLI < Thor default_task :highlight def self.start(argv=ARGV, *a) + if argv.include? '-v' or argv.include? '--version' + puts Rouge.version + exit 0 + end + unless %w(highlight style).include?(argv.first) argv.unshift 'highlight' end super(argv, *a)