Sha256: 7c2a6519ec5168323d17cab58e8f4a14cbbbf5ec2e2d287ddee89dffec19edc7

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

=begin
    Copyright 2010-2017 Sarosys LLC <http://www.sarosys.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

require_relative '../remote/option_parser'

module Arachni
module UI::CLI
module RPC
module Client
class DispatcherMonitor

# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class OptionParser < Client::Remote::OptionParser

    def after_parse
        options.dispatcher.url = ARGV.shift
    end

    def validate
        # Check for missing Dispatcher
        return if options.dispatcher.url

        print_error 'Missing DISPATCHER_URL option.'
        exit 1
    end

    def banner
        "Usage: #{$0} [options] DISPATCHER_URL"
    end

end
end
end
end
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
arachni-1.5.1 ui/cli/rpc/client/dispatcher_monitor/option_parser.rb
arachni-1.5 ui/cli/rpc/client/dispatcher_monitor/option_parser.rb