rouge 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rouge.rb +2 -0
- data/lib/rouge/cli.rb +5 -0
- data/lib/rouge/lexers/common_lisp.rb +3 -0
- data/lib/rouge/version.rb +1 -1
- metadata +1 -1
data/lib/rouge.rb
CHANGED
data/lib/rouge/cli.rb
CHANGED
@@ -12,6 +12,11 @@ module Rouge
|
|
12
12
|
default_task :highlight
|
13
13
|
|
14
14
|
def self.start(argv=ARGV, *a)
|
15
|
+
if argv.include? '-v' or argv.include? '--version'
|
16
|
+
puts Rouge.version
|
17
|
+
exit 0
|
18
|
+
end
|
19
|
+
|
15
20
|
unless %w(highlight style).include?(argv.first)
|
16
21
|
argv.unshift 'highlight'
|
17
22
|
end
|
data/lib/rouge/version.rb
CHANGED