jazzband / pip-tools

A set of tools to keep your pinned Python dependencies fresh.
https://pip-tools.rtfd.io
BSD 3-Clause "New" or "Revised" License
7.69k stars 610 forks source link

Typo error on readme #2120

Closed Saifeddine75 closed 1 month ago

Saifeddine75 commented 1 month ago

There is likely a typing error in readme file.

This seems like a typing error: pip-compile - --output-file=- < requirements.in > requirements.txt

Im not sure but maybe It should be: pip-compile --output-file= requirements.in > requirements.txt

chrysle commented 1 month ago

No, this seems correct; the first - instructs pip-compile to read from standard input, and the < redirects the contents of requirements.in to standard input, while per the second dash the results are being written to the standard output, which in turn is redirected to requirements.txt (via the >).

WhyNotHugo commented 1 month ago

@Saifeddine75 - is commonly used by applications as an alias for stdin

Saifeddine75 commented 1 month ago

Oh okay thank you very much, was just getting error with this command in powershell but I guess it is not compatible with windows shells.