Skip to content

Options aren't found if <argument> is too long #16

@alexchandel

Description

@alexchandel

Consider the usage text:

Usage:
  foo <argument>
  foo --help

Options:
  -h, --help        Print this message.
  -v, --verbose     Print extra warnings and information.

When invoked as foo --help or as foo -h, (isPresent args (longOption "help")) will return false. This is unsettling.

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