Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The '--output' option returns usage information #13368

Closed
nekinie opened this issue Mar 26, 2024 · 1 comment · Fixed by #13369
Closed

The '--output' option returns usage information #13368

nekinie opened this issue Mar 26, 2024 · 1 comment · Fixed by #13369
Assignees

Comments

@nekinie
Copy link

nekinie commented Mar 26, 2024

What version of Tailwind CSS are you using?
v4.0.0-alpha.10

What build tool (or framework if it abstracts the build tool) are you using?
Bazel 7.1.0

What version of Node.js are you using?
20.11.1

What browser are you using?
N/A

What operating system are you using?
Linux

Reproduction URL
N/A

Describe your issue
If you run the Tailwind CLI using the '--output' flag referenced in the CLI's usage information, the CLI will show the usage information instead of generatnig the desired CSS. This appears to be due to a guard only checking for the '-o' option.

if ((process.stdout.isTTY && !process.argv.slice(2).includes('-o')) || shared['--help']) {

Minor but confused me for a little while :)

@nekinie nekinie changed the title The '--output' option returns usage information on the CLI The '--output' option returns usage information Mar 26, 2024
@RobinMalfait RobinMalfait self-assigned this Mar 26, 2024
@RobinMalfait
Copy link
Member

Hey!

Good catch! This will be fixed in the next alpha release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants