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

[Proposal] Split output CLI argument into output_dir, format, and label #27

Open
SomeoneInParticular opened this issue Jan 14, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@SomeoneInParticular
Copy link
Collaborator

As the title suggests. Right now, the output flag in the argument parser does not fully match the outputs actually generated by program. It also Doing this split (alongside corresponding documentation) would make it much clearer to the user what files will be produced.

A worked example to demonstrate this:

Current:

> python bibeasy_cli.py -o "testing/test.docx" -t article media
| testing/test-article.docx
| testing/test-media.docx

Proposed

> python bibeasy_cli.py -o "testing/" --format docx -l test -t article media
| testing/test-article.docx
| testing/test-media.docx

This would also allow us to split the "output type checking" code from the output file checking, making everything a bit cleaner and much easier to extend (should Microsoft release yet another Word file format or somesuch)

@SomeoneInParticular SomeoneInParticular added the enhancement New feature or request label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant