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

Default to help when calling subcommands without any arguments #184

Merged
merged 2 commits into from
Jan 11, 2023

Conversation

nevir
Copy link
Contributor

@nevir nevir commented Nov 27, 2022

This improves output when calling subcommand-based tools by displaying subcommand help (rather than "No value provided for subcommand"); and works with nested subcommands.

This fixes #177

@changeset-bot
Copy link

changeset-bot bot commented Nov 27, 2022

🦋 Changeset detected

Latest commit: e56d59d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
cmd-ts Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 27, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cmd-ts ✅ Ready (Inspect) Visit Preview Jan 11, 2023 at 8:01PM (UTC)

Copy link
Owner

@Schniz Schniz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, sorry for taking a long time to review. Can you please revert the change in changelog?

CHANGELOG.md Outdated

### Major Changes

- 2c340fd: Display help when calling subcommands without any arguments.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert the change to change log 🙏

@nevir
Copy link
Contributor Author

nevir commented Jan 11, 2023

Yup! Reverted that

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.

Option to display help when no arguments are passed
2 participants