From 7fe77046990ee655d74914ec1b72de18c406f877 Mon Sep 17 00:00:00 2001 From: Fabien Benureau Date: Mon, 18 Nov 2013 19:05:41 +0100 Subject: [PATCH] fix attach_cmd where meta would not be updated --- pubs/commands/attach_cmd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pubs/commands/attach_cmd.py b/pubs/commands/attach_cmd.py index a3caf52..6ffed16 100644 --- a/pubs/commands/attach_cmd.py +++ b/pubs/commands/attach_cmd.py @@ -11,7 +11,7 @@ def parser(subparsers): help="don't copy document files (opposite of -c)") parser.add_argument('citekey', help='citekey of the paper') - parser.add_argument('document', + parser.add_argument('document', help='document file') return parser @@ -38,6 +38,7 @@ def command(args): else: pass # TODO warn if file does not exists paper.docpath = document + rp.push_paper(paper, overwrite=True, event=False) except ValueError, v: ui.error(v.message) ui.exit(1)