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

Print usage if args not provided #164

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

abhillman
Copy link
Contributor

@abhillman abhillman commented Dec 2, 2024

Resolves:

Before:

$ ./bin/wattsi
wattsi: output directory (second argument) must be an existing empty directory
$ echo $?
0

After:

$ ./bin/wattsi
wattsi: missing required arguments
syntax:
  wattsi [--quiet] [--single-page-only] <source-file> <source-git-sha> <output-directory> <default-or-review> <mdn-spec-links/html.json> [<highlight-server-url>]
  wattsi --version
$ echo $?
1

@abhillman abhillman closed this Dec 2, 2024
@abhillman abhillman reopened this Dec 2, 2024
@abhillman
Copy link
Contributor Author

I can’t merge, but feel free or lmk if anything else needed from my end ✨

@annevk annevk merged commit b9c2803 into whatwg:main Dec 2, 2024
2 checks passed
@abhillman abhillman deleted the aryeh/fix-no-args-exit branch December 2, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants