Permalink
Browse files

set port to integer in thor

  • Loading branch information...
1 parent 8e928e8 commit 3dfc1938618222aef27609d5eeb185f152a66b4f mguymon committed Sep 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/ruby/solr_sail/cli.rb
@@ -19,7 +19,7 @@ def install_jars
desc "start", "Run Solr"
method_option :solr_home, :aliases => "-h", :default => 'solr', :desc => "Path to install solr config"
- method_option :port, :aliases => "-p", :desc => "Port to run Solr on, overrides Solr Home config"
+ method_option :port, :aliases => "-p", :type => :integer, :desc => "Port to run Solr on, overrides Solr Home config"
def start
SolrSail.start( :solr_home => options[:solr_home], :port => options[:port] )
end

0 comments on commit 3dfc193

Please sign in to comment.