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

Ensure build command is executed when using --output instead of -o #13369

Merged
merged 3 commits into from
Mar 27, 2024

Conversation

RobinMalfait
Copy link
Member

This PR fixes a bug in the @tailwindcss/cli if you run tailwindcss --output output.css then the help text is shown instead of running tailwindcss itself.

This is because we want to show the --help if you run the CLI with not enough information. However, we only checked for -o and not --output. This PR fixes that.

Fixes: #13368

Right now the only command is the build command and we have to parse the
flags either way (either for the help or for the build itself).

This simplifies the code a bit, because `-o` and `--output` will be
normalised.
@RobinMalfait RobinMalfait merged commit c815221 into next Mar 27, 2024
1 check passed
@RobinMalfait RobinMalfait deleted the fix/issue-13368 branch March 27, 2024 15:10
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 this pull request may close these issues.

The '--output' option returns usage information
2 participants