consistency
This commit is contained in:
@@ -2,5 +2,9 @@
|
||||
|
||||
require_relative '../lib/feature/commander'
|
||||
|
||||
command = Feature::Commander.new(ARGV)
|
||||
command.execute
|
||||
commander = Feature::Commander.new(ARGV)
|
||||
if commander.valid?
|
||||
commander.execute
|
||||
else
|
||||
commander.help
|
||||
end
|
||||
|
||||
@@ -13,6 +13,14 @@ module Feature
|
||||
@argv = argv
|
||||
end
|
||||
|
||||
def valid?
|
||||
true
|
||||
end
|
||||
|
||||
def help
|
||||
exit
|
||||
end
|
||||
|
||||
def execute
|
||||
command = case argv[0]
|
||||
when "start" then Feature::Start.new(argv)
|
||||
|
||||
Reference in New Issue
Block a user