Sha256: 1c69db4787251eaab5ccdc87326bcefa531d656e29eaa83244b4848a169dfe52

Contents?: true

Size: 818 Bytes

Versions: 12

Compression:

Stored size: 818 Bytes

Contents

#!/usr/bin/env ruby

require 'optparse'
require 'methadone'
require '<%= gemname %>'

class App
  include Methadone::Main
  include Methadone::CLILogging

  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

  use_log_level_option

  go!
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
methadone-1.2.4 templates/full/bin/executable.erb
methadone-1.2.3 templates/full/bin/executable.erb
methadone-1.2.2 templates/full/bin/executable.erb
methadone-1.2.1 templates/full/bin/executable.erb
methadone-1.2.0 templates/full/bin/executable.erb
methadone-1.1.0 templates/full/bin/executable.erb
methadone-1.0.0 templates/full/bin/executable.erb
methadone-1.0.0.rc6 templates/full/bin/executable.erb
methadone-1.0.0.rc5 templates/full/bin/executable.erb
methadone-1.0.0.rc4 templates/full/bin/executable.erb
methadone-1.0.0.rc3 templates/full/bin/executable.erb
methadone-1.0.0.rc2 templates/full/bin/executable.erb