Sha256: 11ec88b727d5f21bb36843ee5fe09a95786bab60aa627edb586621c5e226d525

Contents?: true

Size: 897 Bytes

Versions: 3

Compression:

Stored size: 897 Bytes

Contents

#!/usr/bin/env ruby

require 'optparse'
require 'methadone'
require 'slack_mb_roamer.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 SlackMbRoamer::VERSION

  use_log_level_option :toggle_debug_on_signal => 'USR1'

  description "My awesome command line app!"

  go!
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slack_mb_roamer-0.1.2 bin/slack_mb_roamer
slack_mb_roamer-0.1.1 bin/slack_mb_roamer
slack_mb_roamer-0.1.0 bin/slack_mb_roamer