Closed rt121212121 closed 2 years ago
If I renamed __main__.py
to electrumsv_sdk.py
it will show as:
usage: electrumsv_sdk.py [-h] [--version] {help,start,stop,reset,node,status,cli_inputs} ...
Good enough? I don't think it's worth the effort to take this further than that.
I initially was using py2exe to make it a 9MB sized .exe
instead of .py
file as the entrypoint but at the time you told me to delete that code and use .bat
instead...
You should be able to look into sys.argv[0]
I think.
I think I've figured out how to fix this. There's an ArgumentParser.prog
attribute that can be overwritten and that's what determines the usage: <prog name> ... ...
Fix incoming..
It worked. The fix will be included in the next release.
SDK script name appears as
__main__.py
notelectrumsv-sdk.bat
electrumsv-sdk.bat
.__main__.py
is there.