Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

The functionality of required() in Opt #93

@bigwater

Description

@bigwater

I checked the ``required()" function of an Opt and try to use it to represent a mandatory option in my project, however, seems it only affects the printed information of --help.

Is the "required()" or "isOptional()" function going to raise an exception when the option is not present when parsing the command line?

Checked the code, seems it is not implemented.
// !TBD Check missing required options

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions