Skip to content

Commit a4334c0

Browse files
bsamsethabn
authored andcommitted
Change usage example for poetry export
The existing example: ```bash poetry export -f requirements.txt > requirements.txt ``` The problem with this is that any additional output from poetry will also end up in the requirements file. For instance, if the `poetry.lock` file is not present, poetry will output to stdout some extra text telling you about this. This breaks the requirements file. (I was burned by this problem, hence this PR) Seeing as there is already a documented option to specify the filename directly, which resolves this issue, updating the docs like this seems reasonable.
1 parent 455def6 commit a4334c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/cli.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ The table below illustrates the effect of these rules with concrete examples.
453453
This command exports the lock file to other formats.
454454

455455
```bash
456-
poetry export -f requirements.txt > requirements.txt
456+
poetry export -f requirements.txt --output requirements.txt
457457
```
458458

459459
!!!note

0 commit comments

Comments
 (0)