Sha256: 6cf31c281da629b48168d4ba9e6e7ec446e1f806d555fdc87a7fa9cfaaab14cc

Contents?: true

Size: 637 Bytes

Versions: 5

Compression:

Stored size: 637 Bytes

Contents

#!/usr/bin/env ruby -w

require 'optparse'
require 'methadone'

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

go!

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
methadone-0.3.4 templates/full/bin/executable.erb
methadone-0.3.3 templates/full/bin/executable.erb
methadone-0.3.2 templates/full/bin/executable.erb
methadone-0.3.1 templates/full/bin/executable.erb
methadone-0.3.0 templates/full/bin/executable.erb