Skip to content

Allow no value #674

@biosmanager

Description

@biosmanager

I'm trying to implement a string option that can have three states:

  1. Not supplied
  2. No value
  3. Empty or value

I want to do the following:
MyApp.exe writes unformatted output to standard output
MyApp.exe --json writes JSON formatted output to standard output
MyApp.exe --json file.json writes JSON formatted output to file.json

Is this currently possible?

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