Skip to content

What is the correct way to parse an argument with value - #574

Closed
@tevoinea

Description

@tevoinea

I have a program that I would like to execute like so:

./myprogram --someArg 2 --thisFails - --anotherArg 3

Where the value of thisFails should be set to -

I've also tried: "-" to no avail

The error I'm getting is:

ERROR(S):
  Option 'thisFails' has no value.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions