mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
9142aa173f
Plugins can define their own command line options by having a lib/plugin_name/cli.rb file. If this file exists it is loaded immediately before command line options are processed. The contents of the file should be along the lines of: Pry::CLI.add_options do on "my-option", "My first option!" do puts "I just defined an option!" end end
16 lines
217 B
Ruby
Executable file
16 lines
217 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
# (C) John Mair (banisterfiend)
|
|
# MIT license
|
|
|
|
$0 = 'pry'
|
|
|
|
begin
|
|
require 'pry'
|
|
rescue LoadError
|
|
require 'rubygems'
|
|
require 'pry'
|
|
end
|
|
|
|
# Process command line options and run Pry
|
|
Pry::CLI.run
|