mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-07 02:26:28 +02:00
Update entry point
This commit is contained in:
parent
d61eb48cf8
commit
30ec71a84c
1 changed files with 14 additions and 0 deletions
14
esds/__main__.py
Normal file
14
esds/__main__.py
Normal file
|
@ -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)
|
Loading…
Add table
Reference in a new issue