Skip to content

arg parser: --flag=value eats the next positional; subcommand --help is exit 2 #4

Closed

Description

@ashu17706
  1. tabstack extract markdown --output=json <url> — --output=json is treated as an unknown valued flag and consumes the URL → confusing usage error (repro'd).
  2. tabstack research --help prints a usage error with exit 2 instead of help.

Fix: split --flag=value before parsing; route -h/--help anywhere to help, exit 0.

Activity

  1. added
    bug
    on Jun 12, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions