Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change API from .utl.addOpt to .utl.addFlag #8

Open
nugend opened this issue Mar 2, 2016 · 0 comments
Open

Change API from .utl.addOpt to .utl.addFlag #8

nugend opened this issue Mar 2, 2016 · 0 comments

Comments

@nugend
Copy link
Owner

nugend commented Mar 2, 2016

In the history of the command line parser's development, addOpt was created before addOptDef and intended to support both command line flags that would take an argument as well as command line flags that toggled an option on or off.

After using the library for a long time, the addOptDef is used far more often and addOpt is actually confused by its capability of parsing a parameter. Consequently, I want to create addFlag as a limited subset of addOpt which only supports boolean flags and eventually remove addOpt as it exists altogether.

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

No branches or pull requests

1 participant