Sha256: e77f8afa102b09a5cc43e1561cae17428394db2e7b870a7946a4a56623d60be0

Contents?: true

Size: 871 Bytes

Versions: 1

Compression:

Stored size: 871 Bytes

Contents

module Bunnish::Command
  module Help
    def self.run(argv, input_stream=$stdin, output_stream=$stdout)
      output_stream.puts <<-EOF
usage: bunnish COMMAND [-h HOST] [-p PORT] [-u USER] [-P PASSWORD]
            [--durable FLAG] [--ack FLAG] [--raise-exception]
            [--log-label LABEL] [--log-dir DIR] [--log-file FILE]
  -h HOST      message queue server address. default is localhost. 
  -p PORT      port number. default is 5672.
  -u USER      user name. default is 'guest'.
  -P PASSWORD  password. default is 'guest'.
  --durable FLAG   FLAG=t:disk queue; FLAG=f:memory queue(default).
  --ack FLAG       FLAG=t:enable ack(default); FLAG=t:disable ack.
  --raise-exception    raise exception.
  --log-label LABEL    set log label.
  --log-dir DIR        set log directory.
  --log-file FILE      set log file.
      EOF
      return 0
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bunnish-0.0.4 lib/bunnish/command/help.rb