Commit 5e988a94 authored by Eloy Durán's avatar Eloy Durán

Make printing the version work again.

parent c64c9ae3
...@@ -29,6 +29,15 @@ module Pod ...@@ -29,6 +29,15 @@ module Pod
command command
end end
def self.run(argv)
argv = CLAide::ARGV.new(argv)
if argv.flag?('version')
puts VERSION
exit!(0)
end
super(argv)
end
def self.report_error(error) def self.report_error(error)
if error.is_a?(Interrupt) if error.is_a?(Interrupt)
puts "[!] Cancelled".red puts "[!] Cancelled".red
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment