I'd like to convert my python script to a module that can be called from the commandline. Kind of like pytest or something.
For instance, my script is named egscript.py
. I have to run the script like this, >python3 egscript.py [commandline args]
What I want instead is to be able to do it like this,
>egscript [commandline args]
How can I achieve this?