jjmccollum / teiphy

A Python package for converting TEI XML collations to NEXUS, BEAST 2.7 XML, and other formats
MIT License
11 stars 3 forks source link

simplify CLI to one command #24

Closed rbturnbull closed 2 years ago

rbturnbull commented 2 years ago

Hi @jjmccollum - there is quite a bit of duplication in main.py. I think we can just have one function and it can infer the type from the extension of the output file and this can be overridden on the command line. I'll do something and do submit a PR to show you what I mean.

jjmccollum commented 2 years ago

I just approved the pull request. Thanks for simplifying that code! If you're ready to close this issue, feel free to do so. :)