diff --git a/lib/motion/project/command.rb b/lib/motion/project/command.rb index 8c5149e3..d9f940b1 100644 --- a/lib/motion/project/command.rb +++ b/lib/motion/project/command.rb @@ -124,6 +124,8 @@ module Motion; module Project include CLAide::InformativeError end + protected + def die(message) raise InformativeError, message end @@ -134,6 +136,10 @@ module Motion; module Project end end + def pager + ENV['PAGER'] || '/usr/bin/less' + end + LicensePath = '/Library/RubyMotion/license.key' def read_license_key unless File.exist?(LicensePath) diff --git a/lib/motion/project/command/activate.rb b/lib/motion/project/command/activate.rb index 62725cf6..114b6ad2 100644 --- a/lib/motion/project/command/activate.rb +++ b/lib/motion/project/command/activate.rb @@ -23,7 +23,8 @@ module Motion; module Project class Activate < Command - self.summary = 'Activate the software license' + self.summary = 'Activate software license.' + self.description = 'Activate your RubyMotion software license key.' self.arguments = 'LICENSE-KEY' diff --git a/lib/motion/project/command/changelog.rb b/lib/motion/project/command/changelog.rb index c5e25a76..a3649b37 100644 --- a/lib/motion/project/command/changelog.rb +++ b/lib/motion/project/command/changelog.rb @@ -28,7 +28,6 @@ module Motion; module Project 'RubyMotion versions.' def run - pager = (ENV['PAGER'] or '/usr/bin/less') system("#{pager} /Library/RubyMotion/NEWS") end end