Skip to content

Commit

Permalink
Add initial version of the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
dalonsoa committed Nov 13, 2023
1 parent f340546 commit 80a16ac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ dependencies = [
"dill"
]

[project.scripts]
wsimod = "wsimod.__main__:run"

[project.optional-dependencies]
dev = [
"pytest",
Expand Down
15 changes: 15 additions & 0 deletions wsimod/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""The entry point for the myproject program."""
from argparse import ArgumentParser


def create_parser() -> ArgumentParser:
"""Create the CLI argument parser."""
parser = ArgumentParser(prog="WSIMOD")

return parser


def run() -> None:
"""Main entry point of the application."""
args = vars(create_parser().parse_args())
print(f"Running WSIMOD with these arguments: {args}")

0 comments on commit 80a16ac

Please sign in to comment.