From bbed1c58519f808434106b819ca1a73ea2896a05 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Thu, 19 Sep 2013 18:43:56 -0400 Subject: [PATCH] Removed the -c option from argparse A previous revision merged the functionality implemented by the -c and -e options, but the -c option was reintroduced during the last revision (probably) by accident. I took that out given that it no longer serves a purpose. --- cheat | 4 +--- cheatsheets/foo | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 cheatsheets/foo diff --git a/cheat b/cheat index dca76f6..d234190 100755 --- a/cheat +++ b/cheat @@ -159,6 +159,7 @@ class EditSheet(argparse.Action): def main(): + # @todo: refactor out this global global sheets sheets = CheatSheets() @@ -191,9 +192,6 @@ def main(): parser_group.add_argument('sheet', metavar='cheatsheet', action='store', type=str, nargs='?', help='Look at ') - parser_group.add_argument('-c', '--create', metavar='cheatsheet', - action=EditSheet, type=str, nargs=1, - help='Create ') parser_group.add_argument('-e', '--edit', metavar='cheatsheet', action=EditSheet, type=str, nargs=1, help='Edit ') diff --git a/cheatsheets/foo b/cheatsheets/foo new file mode 100644 index 0000000..f749bbf --- /dev/null +++ b/cheatsheets/foo @@ -0,0 +1 @@ +This is the new cheatsheet for foo.