def parse_args
      parser = Trollop::Parser.new do
        opt :max_attempts, "", :default => DEFAULT_MAX_ATTEMPTS, :long => "--attempts", :short => "-a"
        opt :retry_interval, "", :default => DEFAULT_RETRY_INTERVAL
        opt :time_limit, "", :type => :int
        opt :daemon, "", :long => "--start"
        opt :stop
        opt :ping
        opt :verbose
        opt :state_path, "", :type => String
        version ""
      end
      
      parse do
        options = parser.parse
        options.delete(:max_attempts) unless options[:max_attempts] > 0
        if options[:delete]
          options.delete(:time_limit) unless options[:time_limit] > 0
        end
        options.delete(:retry_interval) unless options[:retry_interval] > 0
        options
      end
    end
def parse_args
      parser = Trollop::Parser.new do
        opt :max_attempts, "", :default => DEFAULT_MAX_ATTEMPTS, :long => "--attempts", :short => "-a"
        opt :retry_interval, "", :default => DEFAULT_RETRY_INTERVAL
        opt :time_limit, "", :type => :int
        opt :daemon, "", :long => "--start"
        opt :stop
        opt :ping
        opt :verbose
        opt :state_path, "", :type => String
        version ""
      end
      
      parse do
        options = parser.parse
        options.delete(:max_attempts) unless options[:max_attempts] > 0
        if options[:delete]
          options.delete(:time_limit) unless options[:time_limit] > 0
        end
        options.delete(:retry_interval) unless options[:retry_interval] > 0
        options
      end
    end
Create options hash from command line arguments

 === Return
 options(Hash):: Command line options