ack3 icon indicating copy to clipboard operation
ack3 copied to clipboard

Feature: help message: "exclude"

Open epa opened this issue 1 year ago • 1 comments

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.

epa avatar Oct 21 '24 15:10 epa

Interesting thought, thank you.

n1vux avatar Oct 21 '24 16:10 n1vux