I have a python project with multiple scripts. The structure is organized as:
project-folder
...
src
scripts
script1
script2
__main__.py
I want to execute the scripts at project-folder level, where you can invoke the script you wanna execute as python -script1 or python -script2. If you specify script1, then you are allowed to provide all relevant command-line arguments for script1, i.e. python -script1 -script1param1="..." -script1param2="...", etc. For script2 applies the same: python -script2 -script2param1="..." -script2param2="...".
I could define at script level script specific cmd options, like python -script1param1="..." -script1param2="..." or python -script2param1="..." -script2param2="...", and at project-folder level the option which script you want to run, either python -script1 or python -script2, but I couldn't combine both in one.
Any ideas on this?
Thanks in advance.