From 7209f2c9290072b0ff6c2b7a5b39fbe19688c359 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Mon, 27 Feb 2017 23:09:51 -0500 Subject: [PATCH] docopt Made revisions to the content of the docopt template. --- bin/cheat | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/bin/cheat b/bin/cheat index 5076515..2a66744 100755 --- a/bin/cheat +++ b/bin/cheat @@ -2,6 +2,8 @@ """cheat +Create and view cheatsheets on the command line. + Usage: cheat cheat -e @@ -10,24 +12,26 @@ Usage: cheat -d cheat -v -cheat allows you to create and view interactive cheatsheets on the -command-line. It was designed to help remind *nix system -administrators of options for commands that they use frequently, -but not frequently enough to remember. - -Examples: - To look up 'tar': - cheat tar - - To create or edit the cheatsheet for 'foo': - cheat -e foo - Options: -d --directories List directories on CHEATPATH -e --edit Edit cheatsheet -l --list List cheatsheets -s --search Search cheatsheets for -v --version Print the version number + +Examples: + + To view the `tar` cheatsheet: + cheat tar + + To edit (or create) the `foo` cheatsheet: + cheat -e foo + + To list all available cheatsheets: + cheat -l + + To search for "ssh" among all cheatsheets: + cheat -s ssh """ # require the dependencies