mirror of
https://github.com/Erreur32/cheat.git
synced 2024-10-31 21:11:07 +01:00
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():
|
||||
|
||||
# @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
1
cheatsheets/foo
Normal file
@ -0,0 +1 @@
|
||||
This is the new cheatsheet for foo.
|
Loading…
Reference in New Issue
Block a user