We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df5390e commit b5561a9Copy full SHA for b5561a9
src/lapidary/render/cli.py
@@ -1,18 +1,19 @@
1
-import logging
2
import sys
3
from pathlib import Path
4
5
import anyio
6
import asyncclick as click
7
8
-logger = logging.getLogger(__name__)
9
-logging.getLogger().setLevel(logging.DEBUG)
10
-
11
12
@click.group()
13
@click.version_option(package_name='lapidary.render', prog_name='lapidary')
14
-def app() -> None:
15
- pass
+@click.option('--verbose', is_flag=True, help='Enable debug logs.', default=False)
+def app(verbose: bool) -> None:
+ if verbose:
+ import logging
+
+ logging.basicConfig()
16
+ logging.getLogger('lapidary').setLevel(logging.DEBUG)
17
18
19
@app.command()
0 commit comments