Skip to content

A recent change breaks custom help Commands #2260

Description

@bbadour

The recent change at https://github.com/urfave/cli/blob/fd14621cbcd644aa35483480d40f7cdf7b69f4c0/command_run.go#L144C29-L144C53 assumes any command named "help" must be the default Help handler. This breaks applications with custom Help commands.

There are lots of reasons to want a custom Help command. e.g. to write to the cmd.Root()'s OutWriter or ErrWriter instead of to stdout.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/v3relates to / is being considered for v3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions