Refactor CLI::Version
.
This commit is contained in:
parent
101371207f
commit
5429ab0d1b
@ -6,7 +6,11 @@ module Hbc
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.run(*args)
|
def self.run(*args)
|
||||||
raise ArgumentError, "#{command_name} does not take arguments." unless args.empty?
|
new(*args).run
|
||||||
|
end
|
||||||
|
|
||||||
|
def run
|
||||||
|
raise ArgumentError, "#{self.class.command_name} does not take arguments." unless @args.empty?
|
||||||
puts Hbc.full_version
|
puts Hbc.full_version
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user