From 1e1520ce562abc7837168994bc9a84ec3a678ae1 Mon Sep 17 00:00:00 2001 From: roemer_j Date: Mon, 16 Sep 2013 03:28:08 +0200 Subject: [PATCH] Removed old help, just forgot to remove at first commit --- cheat | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/cheat b/cheat index 939361f..d3aafb8 100755 --- a/cheat +++ b/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] - 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