Click's documentation provides a clear example of how to get default values 
from an environment variable, but I am not sure how this works with 
configuration files.

Can someone show a sample that would be the semantic equivalent of this?

@click.option('--first', default=click.config_override)
@click.option('--second', default=click.config_override)
def main(first, second):

The idea is that if I run my program and give it a path to a config file, 
then values for `first` and `second` will be taken from the file (if they 
are defined there).

Help will be greatly appreciated,

You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pocoo-libs+unsubscr...@googlegroups.com.
To post to this group, send email to pocoo-libs@googlegroups.com.
Visit this group at https://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to