Skip to content

Fix flag parse error handling across ability, pokemon, and tcg commands #266

@digitalghost-dev

Description

@digitalghost-dev
  • ExitOnErrorContinueOnError on all three custom FlagSets, making the existing if err != nil parse error blocks live code instead of dead code
  • Add errors.Is(err, flag.ErrHelp) guard so -h after a subcommand argument exits cleanly instead of printing "error parsing flags: flag: help requested"
  • Remove redundant flag.Parse() call in tcg.go (no global flags registered there).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/fixSomething isn't working or needs updating.

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions