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

The functionality of required() in Opt #93

Open
bigwater opened this issue May 31, 2019 · 1 comment
Open

The functionality of required() in Opt #93

bigwater opened this issue May 31, 2019 · 1 comment

Comments

@bigwater
Copy link

bigwater commented May 31, 2019

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.

@bigwater bigwater reopened this May 31, 2019
bigwater added a commit to bigwater/Clara that referenced this issue Jun 1, 2019
When the option is not provided in the commmand line, it raises an
error. The according tests are also added.
@rpavlik
Copy link

rpavlik commented Aug 14, 2019

Duplicate of #39

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants