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.
This commit is contained in:
Chris Lane 2013-09-19 18:43:56 -04:00
parent c87e741f34
commit bbed1c5851
2 changed files with 2 additions and 3 deletions

4
cheat
View File

@ -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 <cheatseet>')
parser_group.add_argument('-c', '--create', metavar='cheatsheet',
action=EditSheet, type=str, nargs=1,
help='Create <cheatsheet>')
parser_group.add_argument('-e', '--edit', metavar='cheatsheet',
action=EditSheet, type=str, nargs=1,
help='Edit <cheatsheet>')

1
cheatsheets/foo Normal file
View File

@ -0,0 +1 @@
This is the new cheatsheet for foo.