lib/invoker/parsers/option_parser.rb in invoker-1.0.2 vs lib/invoker/parsers/option_parser.rb in invoker-1.0.3
- old
+ new
@@ -6,10 +6,10 @@
class OptionParser
def self.parse(args)
selected_command = nil
opts = Slop.parse(args, help: true) do
on :v, "Print the version" do
- Invoker::Logger.puts Invoker::VERSION
+ selected_command = OpenStruct.new(:command => 'version')
end
on :p, :port=, "Port series to be used for starting rack servers", as: Integer
command 'start' do
banner "Usage : invoker start config.ini \n Start Invoker Process Manager"