From 52a95af1841d9465b579295e993ad3b646a943c0 Mon Sep 17 00:00:00 2001 From: Fabien Benureau Date: Thu, 27 Jun 2013 11:55:36 +0200 Subject: [PATCH] renamed tags command into tag --- papers/commands/__init__.py | 2 +- papers/commands/{tags_cmd.py => tag_cmd.py} | 2 +- papers/papers | 24 ++++++++++----------- 3 files changed, 14 insertions(+), 14 deletions(-) rename papers/commands/{tags_cmd.py => tag_cmd.py} (94%) diff --git a/papers/commands/__init__.py b/papers/commands/__init__.py index 5ee8934..26691fa 100644 --- a/papers/commands/__init__.py +++ b/papers/commands/__init__.py @@ -8,6 +8,6 @@ import open_cmd import edit_cmd import remove_cmd import websearch_cmd -import tags_cmd +import tag_cmd import attach_cmd import update_cmd diff --git a/papers/commands/tags_cmd.py b/papers/commands/tag_cmd.py similarity index 94% rename from papers/commands/tags_cmd.py rename to papers/commands/tag_cmd.py index 7d8eab7..398d8a2 100644 --- a/papers/commands/tags_cmd.py +++ b/papers/commands/tag_cmd.py @@ -19,7 +19,7 @@ from ..repo import Repository, InvalidReference from . import helpers def parser(subparsers, config): - parser = subparsers.add_parser('tags', help="add, remove and show tags") + parser = subparsers.add_parser('tag', help="add, remove and show tags") parser.add_argument('referenceOrTag', nargs='?', default = None, help='reference to the paper (citekey or number), or ' 'tag.') diff --git a/papers/papers b/papers/papers index 7f5edfe..1399f67 100755 --- a/papers/papers +++ b/papers/papers @@ -10,19 +10,19 @@ from papers import configs from papers import commands cmds = collections.OrderedDict([ - ('init', commands.init_cmd), - ('add', commands.add_cmd), + ('init', commands.init_cmd), + ('add', commands.add_cmd), ('add_library', commands.add_library_cmd), - ('import', commands.import_cmd), - ('export', commands.export_cmd), - ('list', commands.list_cmd), - ('edit', commands.edit_cmd), - ('remove', commands.remove_cmd), - ('open', commands.open_cmd), - ('websearch', commands.websearch_cmd), - ('tags', commands.tags_cmd), - ('attach', commands.attach_cmd), - ('update', commands.update_cmd), + ('import', commands.import_cmd), + ('export', commands.export_cmd), + ('list', commands.list_cmd), + ('edit', commands.edit_cmd), + ('remove', commands.remove_cmd), + ('open', commands.open_cmd), + ('websearch', commands.websearch_cmd), + ('tag', commands.tag_cmd), + ('attach', commands.attach_cmd), + ('update', commands.update_cmd), ]) config = configs.read_config()