fix attach_cmd where meta would not be updated
This commit is contained in:
parent
4ce261d636
commit
7fe7704699
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user