mirror of https://github.com/cheat/cheat.git
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:
parent
c87e741f34
commit
bbed1c5851
4
cheat
4
cheat
|
@ -159,6 +159,7 @@ class EditSheet(argparse.Action):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
|
# @todo: refactor out this global
|
||||||
global sheets
|
global sheets
|
||||||
sheets = CheatSheets()
|
sheets = CheatSheets()
|
||||||
|
|
||||||
|
@ -191,9 +192,6 @@ def main():
|
||||||
parser_group.add_argument('sheet', metavar='cheatsheet',
|
parser_group.add_argument('sheet', metavar='cheatsheet',
|
||||||
action='store', type=str, nargs='?',
|
action='store', type=str, nargs='?',
|
||||||
help='Look at <cheatseet>')
|
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',
|
parser_group.add_argument('-e', '--edit', metavar='cheatsheet',
|
||||||
action=EditSheet, type=str, nargs=1,
|
action=EditSheet, type=str, nargs=1,
|
||||||
help='Edit <cheatsheet>')
|
help='Edit <cheatsheet>')
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
This is the new cheatsheet for foo.
|
Loading…
Reference in New Issue