`poetry init --author` doesn't seem to allow multiple authors on Windows
- [x] I have searched the issues of this repo and believe that this is not a duplicate.
- [x] I have searched the FAQ and general documentation and believe that my question is not already covered.
Feature Request
Hi all,
Been creating a couple scripts to spin up development environments automatically using poetry in the terminal.
Noticed that there is no --authors flag for poetry init and poetry init --author doesn't seem to accept lists no matter how I seem to input it, figured it'd be a pretty quick implementation to allow some sort of delimiter to input more than one author at a time or add any existing solutions to this issue into the docs.
All the best, Frankie
I'd like to Claim this issue.
After looking over poetry/src/poetry/console/commands/init.py, It seems this issue hasn't been fixed yet. I don't have much experience contributing to OSS but I will do my best!
The pyproject.toml file already has authors defined as a list, So it seems only the init.py file needs to be updated. Now it seems there are a couple options to make this change.
- add a --coauthor or --authors Option as DVFrankieHomewood mentioned, that allows adding/appending additional authors
- add a prompt/loop to the --author option, that asks if co-authors need to be added
- update --author to accept lists
Currently I'm planning on option 2, and adding a loop to the --author command, that prompts the user for more authors. This doesnt require any updates to the commands list in documentation, and it also seems more user friendly then copying lists into the console. Please let me know if there is a preferred method for how information is prompted by the user, otherwise I will continue with option 2.
@python-poetry/triage
@kaminskj I think the best way would be to go with option 3. Option 2 would be tricky to handle in non-interactive settings. The way I see it, CLI should allow for something like poetry init --author author_1 --author author_2.