Skip to content

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

@nekinie

Description

@nekinie

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 :)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions