Commit d428d52e authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

add debug option in mirror

parent e36c4e76
Loading
Loading
Loading
Loading
+2 −1
Changes for src/climax/__main__.py: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -575,7 +575,7 @@ def config():
def mirror(
    directory: Annotated[
        Optional[Path], typer.Argument(help=_("chemin vers un dossier"))
    ] = Path(os.getcwd(), "output")
    ] = Path(os.getcwd(), "output"), debug: bool = False
):
    config = max_config()
    # start server on specific port
@@ -592,6 +592,7 @@ def mirror(
                project_folder=str(directory),
                project_name=config.title,
                threaded=False,
                debug=debug
            )
    except Exception as e:
        stop(stop_port)