Skip to content

fix: show help and exit 0 when no target given#109

Merged
fahimfaisaal merged 2 commits into
mainfrom
fix/no-target-help
May 23, 2026
Merged

fix: show help and exit 0 when no target given#109
fahimfaisaal merged 2 commits into
mainfrom
fix/no-target-help

Conversation

@fahimfaisaal

Copy link
Copy Markdown
Member

Running vizb with no arguments now displays help and exits cleanly instead of printing an error and exiting with code 1.

Also corrected the --output flag description.

fahimfaisaal and others added 2 commits May 23, 2026 16:40
Running vizb with no arguments now displays help and exits cleanly
instead of printing an error and exiting with code 1.

Also corrected the --output flag description.

Co-authored-by: CommandCodeBot <[email protected]>
Updated the "No args and no stdin" test to accept empty output
since the bare cobra.Command has no help text, and made the
content assertion conditional on a non-empty expectedOutput.

Co-authored-by: CommandCodeBot <[email protected]>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fahimfaisaal
fahimfaisaal merged commit 96da229 into main May 23, 2026
1 check passed
@fahimfaisaal
fahimfaisaal deleted the fix/no-target-help branch May 23, 2026 10:53
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.

2 participants