fix attach_cmd where meta would not be updated

main
Fabien Benureau 11 years ago
parent 4ce261d636
commit 7fe7704699

@ -11,7 +11,7 @@ def parser(subparsers):
help="don't copy document files (opposite of -c)") help="don't copy document files (opposite of -c)")
parser.add_argument('citekey', parser.add_argument('citekey',
help='citekey of the paper') help='citekey of the paper')
parser.add_argument('document', parser.add_argument('document',
help='document file') help='document file')
return parser return parser
@ -38,6 +38,7 @@ def command(args):
else: else:
pass # TODO warn if file does not exists pass # TODO warn if file does not exists
paper.docpath = document paper.docpath = document
rp.push_paper(paper, overwrite=True, event=False)
except ValueError, v: except ValueError, v:
ui.error(v.message) ui.error(v.message)
ui.exit(1) ui.exit(1)

Loading…
Cancel
Save