fix attach_cmd where meta would not be updated

This commit is contained in:
Fabien Benureau 2013-11-18 19:05:41 +01:00
parent 4ce261d636
commit 7fe7704699

View File

@ -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)