diff --git a/$REPO_NAME_SNAKE/__about__.py b/$REPO_NAME_SNAKE/__about__.py deleted file mode 100644 index d4b6dbc..0000000 --- a/$REPO_NAME_SNAKE/__about__.py +++ /dev/null @@ -1,2 +0,0 @@ -__version__ = "0.0.0" -__name__ = "$REPO_NAME_SNAKE" \ No newline at end of file diff --git a/$REPO_NAME_SNAKE/__init__.py b/$REPO_NAME_SNAKE/__init__.py index e69de29..8ac352a 100644 --- a/$REPO_NAME_SNAKE/__init__.py +++ b/$REPO_NAME_SNAKE/__init__.py @@ -0,0 +1,6 @@ +import pathlib + + +__name__ = "$REPO_NAME_SNAKE" +__folder__ = str(pathlib.Path(__file__).parent) + diff --git a/$REPO_NAME_SNAKE/__main__.py b/$REPO_NAME_SNAKE/__main__.py index 453d429..ac96798 100644 --- a/$REPO_NAME_SNAKE/__main__.py +++ b/$REPO_NAME_SNAKE/__main__.py @@ -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() +