Sha256: 7ebf5edfaf3472cf67346534b084dab28d6e916ef7d242fd553c504281595cf7
Contents?: true
Size: 696 Bytes
Versions: 4
Compression:
Stored size: 696 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require 'methadone' require '<%= gemname %>' include Methadone::Main main do # Add args you want: |like,so| # your program code here # You can access CLI options via # the options Hash 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 <%= module_name %>::VERSION go!
Version data entries
4 entries across 4 versions & 1 rubygems