Since this is still the primary Google result, and it took me way too much time to figure out:
You can just use the --project-root=<your directory> flag
--project-root=<your directory>