add support for PEP 621: poetry add - change "--optional" to require an extra the optional dependency is added to (#9135)