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.