Skip to content

Short option name with single character or multiple characters have different result  #2211

@Brucedayton

Description

@Brucedayton

Steps to reproduce:

  1. Have command with a required option argument with a short name (e.g -a).
  2. Have command with a required option argument with a short name (e.g -bc).
    Run the command with the option argument but with no space after the argument name (e.g commandname -asdf).
    Run the command with the option argument but with no space after the argument name (e.g commandname -bcd).

Actual result:

  1. Command runs and option argument -a has value "sdf".
  2. error: unknown option '-bcd'

Can short option with single character report the same error like issue 2?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions