mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-18 08:30:43 +08:00
[command] Change some validations to show help banner.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user