-
Notifications
You must be signed in to change notification settings - Fork 38
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
Comments
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 |
I played with it a little bit and it seems that it is not possible to mark a CommandLineOption as optional. Did I miss something? |
Use the getOrElse or getOrNull methods to get optional properties
…On Wed, 30 Aug 2017 at 12:12, Stefan Liebig ***@***.***> wrote:
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?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AADbm9Y6AoI58SSVbz2XRw-CV8vvwBltks5sdUObgaJpZM4KX5mO>
.
|
Sorry, my mistake. |
No problem. The library does need better documentation!
…--Nat
On Wed, 30 Aug 2017 at 13:53, Stefan Liebig ***@***.***> wrote:
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.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AADbm9BRyyJTKMMBZq7PjxOtqw_sQ--Tks5sdVsxgaJpZM4KX5mO>
.
|
This was in 2017 and the documentation is still not updated, of this ticket closed. |
I can't seem to find how to use the CLI for configuration, despite the fact the README says it's an available source.
The text was updated successfully, but these errors were encountered: