Sha256: fd4b12e5b3eea071c181a7734728e5a62f8240985a8d1a8f1be742dca0a3e952

Contents?: true

Size: 251 Bytes

Versions: 5

Compression:

Stored size: 251 Bytes

Contents

require 'tty-option'
class Command
  include TTY::Option

  usage do
    program "sflow"

    desc "Run a command in a new container"
  end

  flag :help do
    short "-h"
    long "--help"
    desc "Print usage"
  end

end
cmd = Command.new
cmd.parse

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gitsflow-0.8.3.release100620241155 lib/command.rb
gitsflow-0.8.3.release270620230815 lib/command.rb
gitsflow-0.8.3.release230620231302 lib/command.rb
gitsflow-0.8.2.beta lib/command.rb
gitsflow-0.8.2.alfa lib/command.rb