perrette / papers

Command-line tool to manage bibliography (pdfs + bibtex)
MIT License
146 stars 22 forks source link

move command-line related code to __main__.py #43

Closed perrette closed 1 year ago

perrette commented 1 year ago

Following #42 by @boyanpenkov this PR moves main() related code to main.py The code in main.py is not meant to be used elsewhere. If code found there is deemed useful enough to be used in its own purpose (such as in another application using papers as dependency), it should be moved to another module (bib.py or else). Now the cli code can be run either upon pip install as papers, or without install via python -m papers (instead of previously python -m papers.bib). That can be useful for development.