From 30ec71a84ca45bc2c0f43f1e2b40cf0441762716 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 11 Sep 2022 17:18:38 +0200 Subject: [PATCH] Update entry point --- esds/__main__.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 esds/__main__.py diff --git a/esds/__main__.py b/esds/__main__.py new file mode 100644 index 0000000..dbc333a --- /dev/null +++ b/esds/__main__.py @@ -0,0 +1,14 @@ +import sys, argparse + +def run(args): + print(args) + +def main(): + ##### Parse arguments + parser = argparse.ArgumentParser(description='ESDS Simulator CLI toolbox. Allow you to run simulations and perform various tasks.') + parser.add_argument("run", help="Run a simulation", nargs="*") + args = parser.parse_args() + + ##### Run commands + if args.run: + run(args.run)