Sha256: 2e64eb7985f6c97668d7bf6bbc00229fdc536e108063d8a122b1a681aa2c3b5a
Contents?: true
Size: 813 Bytes
Versions: 1
Compression:
Stored size: 813 Bytes
Contents
# encoding: utf-8 # require 'cmdparse' module BuildTool class Command < CmdParse::Command def show_help puts usage puts if description puts description puts else puts short_desc puts end if has_commands? list_commands puts end unless (summary = options.summarize).empty? puts summary puts end end def complete( args ) if options.instance puts options.instance.complete( :long, "-v", true ) return ["#{name} Yeah"] else return [] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
build-tool-0.0.3 | lib/kde-build/command.rb |