[command] Change some validations to show help banner.

This commit is contained in:
Eloy Durán
2014-01-17 19:16:30 +01:00
parent 274555a2df
commit 3be41f3343
3 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ module Motion; module Project; class Command
def validate!
super
die "Activating a license requires a `LICENSE-KEY`." unless @license_key
help! "Activating a license requires a `LICENSE-KEY`." unless @license_key
end
def run

View File

@@ -36,7 +36,7 @@ module Motion; module Project; class Command
def validate!
super
die "Specify a term to search the API reference for." unless @api_name
help! "Specify a term to search the API reference for." unless @api_name
end
def run

View File

@@ -46,7 +46,7 @@ module Motion; module Project; class Command
def validate!
super
if @force_version
die "--force-version has been deprecated in favor of --cache-version"
help! "--force-version has been deprecated in favor of --cache-version"
end
if @wanted_software_version && File.exist?('/Library/RubyMotion.old')
die("/Library/RubyMotion.old already exists, please move this directory before using --cache-version")