1212from .common import deep_merge
1313from .render import create_env
1414
15- logging .basicConfig (
16- level = logging .INFO ,
17- format = "%(levelname)s: %(message)s"
18- )
15+ logging .basicConfig (level = logging .INFO , format = "%(levelname)s: %(message)s" )
1916logger = logging .getLogger (__name__ )
2017
18+
2119@click .group ()
22- @click .option (
23- "-v" , "--verbose" , is_flag = True ,
24- help = "Show debug information"
25- )
26- @click .option (
27- "-q" , "--quiet" , is_flag = True ,
28- help = "Show errors only"
29- )
30- def cli (verbose , quiet ):
20+ @click .option ("-v" , "--verbose" , is_flag = True , help = "Show debug information" )
21+ @click .option ("-q" , "--quiet" , is_flag = True , help = "Show errors only" )
22+ def cli (quiet = False , verbose = False ):
3123 """PDF document generator from YAML-configured SVG templates."""
3224 if quiet :
3325 logging .getLogger ().setLevel (logging .ERROR )
@@ -36,6 +28,7 @@ def cli(verbose, quiet):
3628 else :
3729 logging .getLogger ().setLevel (logging .INFO )
3830
31+
3932@cli .command ()
4033@click .argument ("config_path" , type = click .Path (exists = True , path_type = Path ))
4134def bake (config_path ):
0 commit comments