added barebone cli

This commit is contained in:
Hazel Noack 2025-06-11 10:42:38 +02:00
parent 4e16bf0420
commit 670a352c6e
3 changed files with 21 additions and 4 deletions

View File

@ -1,2 +0,0 @@
__version__ = "0.0.0"
__name__ = "$REPO_NAME_SNAKE"

View File

@ -0,0 +1,6 @@
import pathlib
__name__ = "$REPO_NAME_SNAKE"
__folder__ = str(pathlib.Path(__file__).parent)

View File

@ -1,5 +1,18 @@
from .__about__ import __name__, __version__
import argparse
import logging
def cli():
print(f"Running {__name__} version {__version__} from __main__.py")
parser = argparse.ArgumentParser(
description="$REPO_DESCRIPTION",
formatter_class=argparse.RawTextHelpFormatter
)
parser.add_argument(
"--debug",
action="store_true",
help="Sets the logging level to debug."
)
args = parser.parse_args()