From 7fd92d70816999c965d4941ec4c50835b0c93d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Faur=C3=A9?= Date: Mon, 5 Jun 2023 15:25:43 +0200 Subject: [PATCH] cleaning --- spip2md/lib.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/spip2md/lib.py b/spip2md/lib.py index af8f797..ce31edc 100644 --- a/spip2md/lib.py +++ b/spip2md/lib.py @@ -103,19 +103,19 @@ def clear_output() -> None: makedirs(CFG.output_dir, exist_ok=True) +# def main(*addargv: str): +# import sys +# argv: list[str] = sys.argv + list(addargv) + +# TODO Define max nb of sections/articles to export based on first CLI argument +# if len(argv) >= 2: +# sections_export = int(argv[1]) +# else: +# sections_export = CFG.max_sections_export + + # When directly executed as a script def cli(): - # def cli(*addargv: str): - # import sys - - # argv: list[str] = sys.argv + list(addargv) - - # TODO Define max nb of sections/articles to export based on first CLI argument - # if len(argv) >= 2: - # sections_export = int(argv[1]) - # else: - # sections_export = CFG.max_sections_export - init_logging() # Initialize logging and logfile clear_output() # Eventually remove already existing output dir