consistency

This commit is contained in:
rkiel
2015-06-06 07:08:59 -04:00
parent 863a641e26
commit a68a450006
2 changed files with 14 additions and 2 deletions

View File

@@ -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

View File

@@ -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)