Skip to content

Feature: help message: "exclude" #381

@epa

Description

@epa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions