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

Document how to use CLI for configuration #9

Open
liamdawson opened this issue Oct 16, 2016 · 6 comments
Open

Document how to use CLI for configuration #9

liamdawson opened this issue Oct 16, 2016 · 6 comments

Comments

@liamdawson
Copy link

I can't seem to find how to use the CLI for configuration, despite the fact the README says it's an available source.

@npryce
Copy link
Owner

npryce commented Feb 12, 2017

Will do.

For now, you'll have to refer to the tests. https://github.com/npryce/konfig/blob/master/src/test/kotlin/com/natpryce/konfig/cli_tests.kt

@StefanLiebig
Copy link

I played with it a little bit and it seems that it is not possible to mark a CommandLineOption as optional.
This is unfortunate especially with the possibility of using the overriding function so that proper default values can be provided through another Configuration.

Did I miss something?

@npryce
Copy link
Owner

npryce commented Aug 30, 2017 via email

@StefanLiebig
Copy link

Sorry, my mistake.
I did not recognize that the exception I got had been caused by the property access. I thought that parsing would generate the exception.

@npryce
Copy link
Owner

npryce commented Aug 30, 2017 via email

@bpappin
Copy link

bpappin commented Nov 2, 2021

This was in 2017 and the documentation is still not updated, of this ticket closed.

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

4 participants