Thanks, it's starting to take shape! I think we're getting close to something we could distribute and use, but there are a few more issues. Here are some. Perhaps we could create separate issues for these, and then you could create PRs against my fork that you could comment on?
--show-output should be -v|--verbose. It should write to STDERR via a logger. Instead of printing a fancy table, it would be easier to read output like this:
Matched key $KEY to Anthology paper ID $ID
where $KEY and $ID are variables defined by the cite key and the match
--output should also allow -o. You shouldn't also need --write_to_output. --output should be an open file stream for outputting, either a file or sys.stdout, and you just print to it, whatever it is.
The input file stream should default to sys.stdin, so that any of the following use cases work:
Hi @Olamyy,
Thanks, it's starting to take shape! I think we're getting close to something we could distribute and use, but there are a few more issues. Here are some. Perhaps we could create separate issues for these, and then you could create PRs against my fork that you could comment on?
--show-output
should be-v|--verbose
. It should write to STDERR via a logger. Instead of printing a fancy table, it would be easier to read output like this:Matched key $KEY to Anthology paper ID $ID
where
$KEY
and$ID
are variables defined by the cite key and the match--output
should also allow-o
. You shouldn't also need--write_to_output
.--output
should be an open file stream for outputting, either a file orsys.stdout
, and you just print to it, whatever it is.The input file stream should default to
sys.stdin
, so that any of the following use cases work:cat in.bib | ./script.py > out.bib ./script.py in.bib > out.bib ./script.py in.bib out.bib
--concise
should default to "false". This should be a flag (that doesn't require an argument of1
to turn on, just its presence should suffice)Finally, when rewriting, you are losing author formatting. e.g.,
gets output as