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

Feature: help message: "exclude" #381

Open
epa opened this issue Oct 21, 2024 · 1 comment
Open

Feature: help message: "exclude" #381

epa opened this issue Oct 21, 2024 · 1 comment

Comments

@epa
Copy link

epa commented Oct 21, 2024

Ack doesn't have options called --exclude or --exclude-dir or --exclude-type or whatever. That's fine. But maybe if the user specifies those by mistake it can print a tailored help message?

Unknown option: exclude
Did you mean:
  --[no]ignore-dir=name         Add/remove directory from list of ignored dirs
  --ignore-file=FILTER:ARGS     Add filter for ignoring files.
  --type=noX                    Exclude X files, e.g. --nophp, --no-ruby.

The existing help text has a section "File inclusion/exclusion" so it's not completely mad to assume that the options would begin --include or --exclude.

@n1vux
Copy link
Contributor

n1vux commented Oct 21, 2024

Interesting thought, 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

No branches or pull requests

2 participants