Added pybrew to bashrc and Help command by default

This commit is contained in:
Yuta
2011-03-19 02:26:44 +09:00
parent 7e494c1c7e
commit 459fdae35f
16 changed files with 111 additions and 62 deletions
+2 -3
View File
@@ -5,10 +5,9 @@ from pythonbrew.baseparser import parser
def main():
options, args = parser.parse_args(sys.argv[1:])
if options.help and not args:
args = ["help"]
args = ['help']
if not args:
parser.error('You must give a command (use "pythonbrew help" to see a list of commands)')
return
args = ['help'] # as default
load_all_commands()
command = args[0].lower()