Created
July 22, 2021 17:10
-
-
Save markusdr/c400c2e7d8bc59dd3f1ce6a26d9a3b3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import click | |
import logging | |
import click_log | |
logger = logging.getLogger(__name__) | |
click_log.basic_config(logger) | |
@click.command() | |
@click_log.simple_verbosity_option(logger) | |
@click.option('-n', '--number', default='config', help='Example number option') | |
def run(number): | |
logger.info('info example') | |
logger.error('error example') | |
logger.debug('debug example') | |
print("Number is {}".format(number)) | |
if __name__ == '__main__': | |
run() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment