Feature Request
Previous issues have been raised asking about the behavior of --directory: (#7363, #7507). They have both been closed as "working as expected", so this issue is an official request to change the behavior OR change the flag OR update the docs.
Most GNU tools like make or git will make git -C dir ... equivalent to (cd dir && git ...). Using the same flag implies the same behavior, when it's not currently the case:
this is expected. Poetry just loads the pyproject.toml from the given directory and does not switch to the directory.
#7363 (comment)
Ideally, the behavior would be changed to actually change the directory; I don't see why a simple addition of os.chdir in the beginning of the CLI main function would break things.
Feature Request
Previous issues have been raised asking about the behavior of
--directory: (#7363, #7507). They have both been closed as "working as expected", so this issue is an official request to change the behavior OR change the flagOR update the docs.Most GNU tools like
makeorgitwill makegit -C dir ...equivalent to(cd dir && git ...). Using the same flag implies the same behavior, when it's not currently the case:Ideally, the behavior would be changed to actually change the directory; I don't see why a simple addition of
os.chdirin the beginning of the CLI main function would break things.