From 03b047e6f8e6030a17bf70e3b465f5e87efd68bf Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Wed, 30 May 2012 23:38:21 -0700 Subject: [PATCH] Upgrade slop syntax in cli.rb --- lib/pry/cli.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pry/cli.rb b/lib/pry/cli.rb index 591564e7..c38be0cc 100644 --- a/lib/pry/cli.rb +++ b/lib/pry/cli.rb @@ -78,7 +78,7 @@ See: `https://github.com/pry` for more information. Copyright (c) 2011 John Mair (banisterfiend) -- } - on :e, :exec, "A line of code to execute in context before the session starts", true + on :e, :exec, "A line of code to execute in context before the session starts", :argument => true on "no-pager", "Disable pager for long output" do Pry.config.pager = false @@ -115,11 +115,11 @@ Copyright (c) 2011 John Mair (banisterfiend) Pry.config.prompt = Pry::SIMPLE_PROMPT end - on :r, :require, "`require` a Ruby script at startup", true do |file| + on :r, :require, "`require` a Ruby script at startup", :argument => true do |file| Pry.config.requires << file end - on :I, "Add a path to the $LOAD_PATH", true do |path| + on :I, "Add a path to the $LOAD_PATH", :argument => true do |path| $LOAD_PATH << path end @@ -130,7 +130,7 @@ Copyright (c) 2011 John Mair (banisterfiend) on(:c, :context, "Start the session in the specified context. Equivalent to `context.pry` in a session.", - true, + :argument => true, :default => "TOPLEVEL_BINDING" ) end.process_options do |opts|