Added '-help' and 'cheat' to the list of cheat usage arguments.

This commit is contained in:
John Shanahan 2013-08-15 17:49:30 -04:00
parent 7cf6291c8a
commit cc47515f41

2
cheat
View file

@ -16,7 +16,7 @@ cheatsheets = os.listdir(cheat_dir)
cheatsheets.sort() cheatsheets.sort()
# print help if requested # print help if requested
if keyphrase in ['', 'help', '--help', '-h']: if keyphrase in ['', '-h', 'help', '-help', '--help', 'cheat']:
print "Usage: cheat [keyphrase]\n" print "Usage: cheat [keyphrase]\n"
print "Available keyphrases:" print "Available keyphrases:"
print "\n".join(cheatsheets) print "\n".join(cheatsheets)