Sha256: 2b329b11d76c7e60cbad7bc9e1bc733b3d4c59ccb31ed070da3b92e32a20b9aa

Contents?: true

Size: 803 Bytes

Versions: 5

Compression:

Stored size: 803 Bytes

Contents

#!/usr/bin/env ruby

require 'optparse'
require 'methadone'
require 'pmirror.rb'

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 Pmirror::VERSION

  use_log_level_option

  go!
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pmirror-0.1.1 bin/pmirror
pmirror-0.0.4 bin/pmirror
pmirror-0.0.3 bin/pmirror
pmirror-0.0.2 bin/pmirror
pmirror-0.0.1 bin/pmirror