mirror of
https://github.com/cheat/cheat.git
synced 2024-11-22 05:51:35 +01:00
Merging shanahanjrs work into master.
This commit is contained in:
commit
13c8d60d75
2
cheat
2
cheat
@ -28,7 +28,7 @@ if not cheat_dirs:
|
|||||||
cheatsheets = cheat_files(cheat_dirs)
|
cheatsheets = cheat_files(cheat_dirs)
|
||||||
|
|
||||||
# print help if requested
|
# print help if requested
|
||||||
if keyphrase.lower() in ['', 'help', '--help', '-h']:
|
if keyphrase.lower() in ['', 'cheat', 'help', '-h', '-help', '--help']:
|
||||||
print "Usage: cheat [keyphrase]\n"
|
print "Usage: cheat [keyphrase]\n"
|
||||||
print "Available keyphrases:"
|
print "Available keyphrases:"
|
||||||
max_command = max([ len(x) for x in cheatsheets.keys() ]) + 3
|
max_command = max([ len(x) for x in cheatsheets.keys() ]) + 3
|
||||||
|
Loading…
Reference in New Issue
Block a user