mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 08:58:28 +01:00
Removed old help, just forgot to remove at first commit
This commit is contained in:
parent
526a9f595a
commit
1e1520ce56
1 changed files with 0 additions and 25 deletions
25
cheat
25
cheat
|
@ -104,31 +104,6 @@ def edit_cheatsheet(cheat, cheatsheets):
|
|||
subprocess.call([os.environ['EDITOR'],
|
||||
os.path.join(cs.cheat_dir, cheat)])
|
||||
|
||||
|
||||
def help(cheatsheets):
|
||||
"Displays the program help"
|
||||
|
||||
print(dedent('''
|
||||
Usage: cheat [OPTIONS] <keyphrase>
|
||||
Examples:
|
||||
|
||||
To look up 'tar':
|
||||
cheat tar
|
||||
|
||||
To create or edit the cheatsheet for 'foo':
|
||||
cheat -e foo
|
||||
|
||||
To list the directories on the CHEATPATH
|
||||
cheat -d
|
||||
|
||||
To list the available cheatsheets:
|
||||
cheat -l
|
||||
|
||||
Available keyphrases:
|
||||
''').strip())
|
||||
|
||||
print list_cheatsheets(cheatsheets)
|
||||
|
||||
def list_cheatsheets(cheatsheets):
|
||||
"Lists the cheatsheets that are currently available"
|
||||
max_command = max([len(x) for x in cheatsheets.keys()]) + 3
|
||||
|
|
Loading…
Reference in a new issue