Sha256: 66b49ecb34bc189878a721f00035a57438b77fdc0a7e486bcd4bd25b87b3839b

Contents?: true

Size: 896 Bytes

Versions: 1

Compression:

Stored size: 896 Bytes

Contents

require 'optparse'
require 'methadone'

module Ry 
  module Commands
    class Frame
      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 'frame'"
      
      # 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/frame.rb