Skip to content

Short Options Should Terminate Concatenation #2

@Electron7-7

Description

@Electron7-7

Currently, when a series of short flags appear (e.g. '-hvpo'), they are all parsed like flags; this ignores the possibility that one of them is an option.

If, during this short flag concatenation, an option flag is encountered, the logic that follows should be something like:

  1. Terminate concatenation without storing the currently parsed short option flag
  2. Check for either a space or an equals sign
  3. If none appear, treat all incoming text that isn't whitespace as if it were the value to this option
  4. Continue with argument parsing

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