Sha256: a6a2a40dabb3bac67616129acbdbf72d668d7049ec1116900ed17eff4544b681
Contents?: true
Size: 982 Bytes
Versions: 1
Compression:
Stored size: 982 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '../lib')) require 'optparse' require 'methadone' require 'ry.rb' require 'ry/commands' class App include Methadone::Main include Methadone::CLILogging command "frame" => Ry::Commands::Frame command "engine" => Ry::Commands::Engine 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 Ry::VERSION use_log_level_option go! end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ry-0.0.1 | bin/ry |