Commit 87b092e8 authored by Ed Reel's avatar Ed Reel

Update help command to use a local instead of an instance variable as suggested by @jam7.

parent 6c483710
......@@ -70,7 +70,7 @@ def search (pkgName, silent = false)
end
def help (pkgName)
case @pkgName
case pkgName
when "build"
puts "Build a package."
puts "Usage: crew build [package]"
......@@ -581,14 +581,14 @@ when "whatprovides"
if @pkgName
whatprovides @pkgName
else
help @pkgName = "whatprovides"
help "whatprovides"
end
when "download"
if @pkgName
search @pkgName
download
else
help @pkgName = "download"
help "download"
end
when "update"
update
......@@ -599,20 +599,20 @@ when "install"
search @pkgName
resolve_dependencies_and_install
else
help @pkgName = "install"
help "install"
end
when "build"
if @pkgName
search @pkgName
resolve_dependencies_and_build
else
help @pkgName = "build"
help "build"
end
when "remove"
if @pkgName
remove @pkgName
else
help @pkgName = "remove"
help "remove"
end
when nil
puts "Chromebrew, version 0.4.2"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment