Skip to content

Commit 3feb0c4

Browse files
committed
Minor fix
1 parent e242f48 commit 3feb0c4

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/pdfbaker/__main__.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,14 @@
1212
from .common import deep_merge
1313
from .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")
1916
logger = 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))
4134
def bake(config_path):

0 commit comments

Comments
 (0)