Skip to content

Improved error message when no search pattern is provided#527

Open
Vishal45718 wants to merge 2 commits intoGenivia:masterfrom
Vishal45718:master
Open

Improved error message when no search pattern is provided#527
Vishal45718 wants to merge 2 commits intoGenivia:masterfrom
Vishal45718:master

Conversation

@Vishal45718
Copy link

Improve UX when no search pattern is provided

This PR improves the error message shown when ugrep is run without a search
pattern.

The previous message was technically correct but confusing for new users.
The updated message:

  • Clearly explains the issue
  • Provides simple usage examples
  • Points users to --help

No behavior or logic changes are introduced.
All tests pass.

@Vishal45718
Copy link
Author

Thanks for reviewing!
Happy to make any changes if needed.

Copy link
Contributor

@pierre-rouleau pierre-rouleau left a comment

Choose a reason for hiding this comment

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

Looks fine to me except that I would start the sentence with an uppercase 'N' as in:
"No search PATTENRN specified.\n\n"

@Vishal45718
Copy link
Author

Thanks for the suggestion! Fixed and updated.

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.

3 participants