Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key format parsed incorrect if only a single argument is given #17

Open
astamminger opened this issue Mar 18, 2020 · 1 comment
Open

Comments

@astamminger
Copy link
Owner

Running zotero-bibtize with only a single argument in the --key-format option, i.e.

zotero-bibtize --key-format [author] ...

only the first character of the content, i.e. a, is parsed. This can be fixed if the argument passed with
quotation marks, i.e.

zotero-bibtize --key-format "[author]" ...

However, it works as expected (without quotation marks) for multiple arguments like [author][journal

@astamminger
Copy link
Owner Author

astamminger commented Apr 24, 2020

Obviously click does some magic when parsing the key from the command line an does not like the braces []. At least it works when the braces are correctly escaped, i.e. --key-format \[author\] would lead to the desired result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant