Sha256: 4b349cb6ad997b223a4273e67805eb9f31660afebc9fbaeb494449902dd0cbea
Contents?: true
Size: 767 Bytes
Versions: 4
Compression:
Stored size: 767 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require 'methadone' require 'working_man' include Methadone::Main main do |run_type| # your program code here # You can access CLI options via # the options Hash case run_type when "start" WorkingMan.start_work when "stop" WorkingMan.stop_work end end # supplemental methods here # Declare command-line interface here # description "one line description of your app" # # Accept flags via: # on("--flag VAL","Some flag") # options[flag] will contain VAL # # Specify switches via: # on("--[no-]switch","Some switch") # # Or, just call OptionParser methods on opts # # Require an argument # arg :some_arg # # # Make an argument optional # arg :optional_arg, :optional version WorkingMan::VERSION go!
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
working_man-0.0.4 | bin/working_man |
working_man-0.0.3 | bin/working_man |
working_man-0.0.2 | bin/working_man |
working_man-0.0.1 | bin/working_man |