Skip to content

Commit

Permalink
added --help info to help line in gist-method, fixed wrong name given…
Browse files Browse the repository at this point in the history
… in cat help (cat-file)
  • Loading branch information
banister committed Apr 22, 2011
1 parent 8f1d482 commit 5147723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pry/commands.rb
Expand Up @@ -143,7 +143,7 @@ class Commands < CommandBase
output.puts bold("Comment length: ") + (doc.empty? ? 'No comment.' : (doc.lines.count.to_s + ' lines.'))
end

command "gist-method", "Gist a method to github.", :requires_gem => "gist" do |*args|
command "gist-method", "Gist a method to github. Type `gist-method --help` for more info.", :requires_gem => "gist" do |*args|
opts = Slop.parse!(args) do |opts|
opts.banner = %{Usage: gist-method [OPTIONS] [METH]
Gist the method (doc or source) to github.
Expand Down Expand Up @@ -553,7 +553,7 @@ class Commands < CommandBase
run ".cd", *args
end

command "cat", "Show output of file FILE. Type `cat-file --help` for more information." do |*args|
command "cat", "Show output of file FILE. Type `cat --help` for more information." do |*args|
options= {}
file_name = nil
start_line = 0
Expand Down

0 comments on commit 5147723

Please sign in to comment.