|
|
|
@ -71,7 +71,7 @@ def command(conf, args):
|
|
|
|
|
# ui.exit()
|
|
|
|
|
|
|
|
|
|
if args.action == 'add':
|
|
|
|
|
citekey = resolve_citekey(rp, args.citekey[0], ui=ui, exit_on_fail=True)
|
|
|
|
|
citekey = resolve_citekey(rp, conf, args.citekey[0], ui=ui, exit_on_fail=True)
|
|
|
|
|
paper = rp.pull_paper(citekey)
|
|
|
|
|
|
|
|
|
|
if paper.docpath is not None and not args.force:
|
|
|
|
@ -98,7 +98,7 @@ def command(conf, args):
|
|
|
|
|
|
|
|
|
|
elif args.action == 'remove':
|
|
|
|
|
|
|
|
|
|
for key in resolve_citekey_list(rp, args.citekeys, ui=ui, exit_on_fail=True):
|
|
|
|
|
for key in resolve_citekey_list(rp, conf, args.citekeys, ui=ui, exit_on_fail=True):
|
|
|
|
|
paper = rp.pull_paper(key)
|
|
|
|
|
|
|
|
|
|
# if there is no document (and the user cares) -> inform + continue
|
|
|
|
@ -126,7 +126,7 @@ def command(conf, args):
|
|
|
|
|
color.dye_err(args.path[0], 'filepath')))
|
|
|
|
|
ui.exit(1)
|
|
|
|
|
|
|
|
|
|
for key in resolve_citekey_list(rp, args.citekeys, ui=ui, exit_on_fail=True):
|
|
|
|
|
for key in resolve_citekey_list(rp, conf, args.citekeys, ui=ui, exit_on_fail=True):
|
|
|
|
|
try:
|
|
|
|
|
paper = rp.pull_paper(key)
|
|
|
|
|
doc = paper.docpath
|
|
|
|
@ -143,7 +143,7 @@ def command(conf, args):
|
|
|
|
|
|
|
|
|
|
elif args.action == 'open':
|
|
|
|
|
with_command = args.cmd
|
|
|
|
|
citekey = resolve_citekey(rp, args.citekey[0], ui=ui, exit_on_fail=True)
|
|
|
|
|
citekey = resolve_citekey(rp, conf, args.citekey[0], ui=ui, exit_on_fail=True)
|
|
|
|
|
paper = rp.pull_paper(citekey)
|
|
|
|
|
|
|
|
|
|
if paper.docpath is None:
|
|
|
|
|