Skip to content

Commit

Permalink
Using GLI 1.2.5's version directive
Browse files Browse the repository at this point in the history
Also, using GLI's exit code while I'm at it.
  • Loading branch information
davetron5000 committed Jan 4, 2011
1 parent 71d00c5 commit fbca969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions bin/showoff
Expand Up @@ -7,13 +7,7 @@ require 'gli'

include GLI

desc 'Show ShowOff version'
long_desc 'This command shows the currently installed version of ShowOff'
command [:version] do |c|
c.action do |global_options,options,args|
puts "ShowOff Version " + ShowOff::Version
end
end
version ShowOff::Version

desc 'Create new showoff presentation'
arg_name 'dir_name'
Expand Down Expand Up @@ -139,4 +133,4 @@ on_error do |exception|
true
end

GLI.run(ARGV)
exit GLI.run(ARGV)
2 changes: 1 addition & 1 deletion showoff.gemspec
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.add_dependency "bluecloth"
s.add_dependency "nokogiri"
s.add_dependency "json"
s.add_dependency ("gli",">= 1.1.1")
s.add_dependency ("gli",">= 1.2.5")
s.description = <<-desc
ShowOff is a Sinatra web app that reads simple configuration files for a
presentation. It is sort of like a Keynote web app engine. I am using it
Expand Down

0 comments on commit fbca969

Please sign in to comment.