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

feat: add --help flag #251

Merged
merged 2 commits into from
Dec 18, 2023
Merged

Conversation

boneskull
Copy link
Contributor

This adds a --help flag which takes precedence over all other arguments or positionals.

Closes #249


I wasn't sure how/where you'd like to see a test for this sort of thing, so I just gave it a shot.

I changed the else ifs to individual if statements because ESLint ("unicorn" plugin) started complaining that I should be using a switch statement. It's not wrong, necessarily--but that's why I did what I did.

@DavidAnson
Copy link
Owner

Thanks, I'll look at this in more detail soon! Very briefly, I would prefer to leave the if/else if in place and suppress the new lint warning. Also, the new parameter should be added to the help output (which will require snapshot updates) and the copy of it in the README.

@boneskull
Copy link
Contributor Author

@DavidAnson I've done as requested

@DavidAnson DavidAnson changed the base branch from main to next December 18, 2023 00:10
…ixes DavidAnson#249).

also reverts some conditional changes and suppresses an eslint rule
@DavidAnson DavidAnson merged commit 1bd7aef into DavidAnson:next Dec 18, 2023
20 checks passed
@DavidAnson
Copy link
Owner

Thank you!

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.

cannot print usage information if globs present in config
2 participants