renamed tags command into tag

main
Fabien Benureau 12 years ago
parent a1895103fc
commit 52a95af184

@ -8,6 +8,6 @@ import open_cmd
import edit_cmd import edit_cmd
import remove_cmd import remove_cmd
import websearch_cmd import websearch_cmd
import tags_cmd import tag_cmd
import attach_cmd import attach_cmd
import update_cmd import update_cmd

@ -19,7 +19,7 @@ from ..repo import Repository, InvalidReference
from . import helpers from . import helpers
def parser(subparsers, config): 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, parser.add_argument('referenceOrTag', nargs='?', default = None,
help='reference to the paper (citekey or number), or ' help='reference to the paper (citekey or number), or '
'tag.') 'tag.')

@ -10,19 +10,19 @@ from papers import configs
from papers import commands from papers import commands
cmds = collections.OrderedDict([ cmds = collections.OrderedDict([
('init', commands.init_cmd), ('init', commands.init_cmd),
('add', commands.add_cmd), ('add', commands.add_cmd),
('add_library', commands.add_library_cmd), ('add_library', commands.add_library_cmd),
('import', commands.import_cmd), ('import', commands.import_cmd),
('export', commands.export_cmd), ('export', commands.export_cmd),
('list', commands.list_cmd), ('list', commands.list_cmd),
('edit', commands.edit_cmd), ('edit', commands.edit_cmd),
('remove', commands.remove_cmd), ('remove', commands.remove_cmd),
('open', commands.open_cmd), ('open', commands.open_cmd),
('websearch', commands.websearch_cmd), ('websearch', commands.websearch_cmd),
('tags', commands.tags_cmd), ('tag', commands.tag_cmd),
('attach', commands.attach_cmd), ('attach', commands.attach_cmd),
('update', commands.update_cmd), ('update', commands.update_cmd),
]) ])
config = configs.read_config() config = configs.read_config()

Loading…
Cancel
Save