Skip to content

Flag alias collision in @manpages command: --gzip and --text both use -z #39

@omoladeodetara

Description

@omoladeodetara

Summary

In pkg/cmd/cmd.go, hidden @manpages command defines two bool flags with the same alias -z:

  • --gzip, alias -z
  • --text, alias -z

Why this is a bug

Alias collision is ambiguous and can lead to incorrect flag parsing/behavior when using short flags.

Suggested fix

Give --text a different alias (or no alias), leaving -z only for --gzip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions