Sha256: eb96d0e2f600287a8a841afc0017bcf1984b46203694bd01520785066f8eb5ab
Contents?: true
Size: 681 Bytes
Versions: 5
Compression:
Stored size: 681 Bytes
Contents
module Rpub module Commands class Help < Base identifier 'help' def invoke if options.empty? Main.new.invoke else Base.matching(options.shift).new.help end end private def parser OptionParser.new do |opts| opts.banner = <<-EOS Usage: rpub help subcommand Describe the usage and options for rpub subcommands. Options: EOS opts.separator '' opts.separator 'Generic options:' opts.separator '' opts.on_tail '-h', '--help', 'Display this message' do puts opts exit end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rpub-0.4.0 | lib/rpub/commands/help.rb |
rpub-0.3.0 | lib/rpub/commands/help.rb |
rpub-0.2.1 | lib/rpub/commands/help.rb |
rpub-0.2.0 | lib/rpub/commands/help.rb |
rpub-0.1.0 | lib/rpub/commands/help.rb |