Sha256: b74a47de78e25e7c8b6f81775284cd48e45c959fd881b4acbf313d29f44f1f51

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

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]
            [--message-max COUNT] [--raise-exception]
            [--log-label LABEL] [--log-dir DIR] [--log-file FILE]
            <QUEUE_NAME[,...]>
  COMMAND              count/delete/help/publish/status/subscribe
  -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.
  --message-max COUNT  max subscribe count.
  --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

5 entries across 5 versions & 1 rubygems

Version Path
bunnish-0.1.3 lib/bunnish/command/help.rb
bunnish-0.1.2 lib/bunnish/command/help.rb
bunnish-0.1.1 lib/bunnish/command/help.rb
bunnish-0.1.0 lib/bunnish/command/help.rb
bunnish-0.0.9 lib/bunnish/command/help.rb