lib/pieces/cli.rb in pieces-0.2.4 vs lib/pieces/cli.rb in pieces-0.3.0
- old
+ new
@@ -14,7 +14,14 @@
def build(path = '.')
print "Building pieces into #{path}... "
Pieces::Builder.build(path: path)
puts 'done.'
end
+
+ map %w[--version -v] => :version
+
+ desc '--version', 'get pieces version'
+ def version
+ puts "pieces v#{Pieces::VERSION}"
+ end
end
end