diff options
| author | Zack Hobson | 2014-01-25 18:33:24 -0800 |
|---|---|---|
| committer | Zack Hobson | 2014-01-25 18:34:04 -0800 |
| commit | dfb027f19ba884770af50ca013d59bee854e7864 (patch) | |
| tree | 000bdae6e2f95e9dd28dbbb06e479ebb1024c0a1 /lib | |
| parent | 4c902dbd288ab44eb4d8eb82827c4e38a6278818 (diff) | |
| download | hcl-dfb027f19ba884770af50ca013d59bee854e7864.tar.bz2 | |
add --changelog option
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/hcl/app.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/hcl/app.rb b/lib/hcl/app.rb index bf02e5e..e2192a7 100644 --- a/lib/hcl/app.rb +++ b/lib/hcl/app.rb @@ -3,6 +3,7 @@ require 'fileutils' require 'trollop' require 'highline/import' +require 'rdiscount' module HCl class App @@ -38,6 +39,10 @@ module HCl # Start the application. def run request_config if @options[:reauth] + if @options[:changelog] + system %[ more "#{File.join(File.dirname(__FILE__), '../../CHANGELOG.markdown')}" ] + exit + end begin if @command if command? @command @@ -128,6 +133,7 @@ Examples: Options: EOM opt :reauth, "Force refresh of auth details" + opt :changelog, "Review the HCl changelog" end @command = args.shift @args = args |
