1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

5 commits

Author SHA1 Message Date
John Mair
1903c19d91 fixed broken --no-plugins option 2012-01-30 14:19:10 +13:00
John Mair
f4d1f448bb Ensure ARGV is not mutated during option parsing. 2012-01-29 21:46:58 +13:00
John Mair
2fdfbad039 added Pry::Hooks#dup/merge/merge! and tests 2012-01-12 16:56:41 +13:00
John Mair
6a799a7fcd updated cli.rb for new API and added tests for cli 2011-12-11 04:13:42 +13:00
John Mair
9142aa173f Added Pry::CLI class for processing command line options, with plugin support.
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
2011-12-09 03:14:33 +13:00