This commit is contained in:
Johann Saunier 2013-09-15 11:02:27 +02:00
parent 5a026dfb41
commit 98b254b799
1 changed files with 6 additions and 6 deletions

8
cheat
View File

@ -109,7 +109,7 @@ def edit_cheatsheet(cheat, cheatsheets):
def help(cheatsheets):
"Displays the program help"
print dedent('''
print(dedent('''
Usage: cheat [OPTIONS] <keyphrase>
Examples:
@ -126,9 +126,9 @@ def help(cheatsheets):
cheat -l
Available keyphrases:
''').strip()
''').strip())
print list_cheatsheets(cheatsheets)
print(list_cheatsheets(cheatsheets))
def list_cheatsheets(cheatsheets):
@ -185,7 +185,7 @@ def main():
# list cheatsheets and exit
if keyphrase in ['-l', '--list']:
print list_cheatsheets(cheatsheets)
print(list_cheatsheets(cheatsheets))
exit()
# if the user wants to edit a cheatsheet