Sha256: 1592b86ae665a7576bdda24ab5124fc347a7969da1676a7205b2bc63c61f627f

Contents?: true

Size: 898 Bytes

Versions: 1

Compression:

Stored size: 898 Bytes

Contents

require 'optparse'
require 'methadone'

module Ry 
  module Commands
    class Engine
      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"
      description "provides command 'engine'"
      
      # 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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ry-0.0.1 lib/ry/commands/engine.rb