def process_options
command = self
@options = Trollop::options(@args) do
version(command.version)
command.prepare_options(self) if command.respond_to?(:prepare_options)
banner %Q{
|
|Standard options:
}.margin
opt :host, 'The AMQP host to connect to', :short => 'H', :default => 'localhost'
opt :port, 'The AMQP port to connect to', :short => 'P', :default => 5672
opt :vhost, 'The vhost to connect to', :short => 'V', :default => '/'
opt :user, 'The user name to authenticate with', :default => 'guest', :short => 'u'
opt :prompt, 'Prompt the user for a password', :short => 'p'
opt :password, 'The password to connect with.', :default => 'guest', :short => :none
conflicts(:prompt, :password)
opt :timeout, 'The connect timeout in seconds', :default => 5, :short => 't'
opt :verbose, 'Print all AMQP commands sent and received.', :short => 'v'
end
@args = @args.dup
ARGV.clear
end