機能 #794 » potion_version.patch
option_patch.rb 2015-11-14 12:45:11.000000000 +0900 | ||
---|---|---|
40 | 40 |
puts "delete "+File.expand_path(Environment::CACHE) |
41 | 41 |
FileUtils.rm_rf(File.expand_path(Environment::CACHE)) |
42 | 42 |
exit } |
43 |
opt.on('-v', '--version', "Show mikutter version"){ |v| |
|
44 |
require 'fileutils' |
|
45 |
require File.expand_path(File.join(File.dirname(__FILE__), "..", 'utils')) |
|
46 |
miquire :core, 'environment' |
|
47 |
puts Environment::NAME + ' ' + Environment::VERSION.to_s |
|
48 |
exit } |
|
43 | 49 |
opt.on('-h', '--help', "Show this message"){ |
44 | 50 |
puts opt |
45 | 51 |
puts "command are:" |