-
-
Notifications
You must be signed in to change notification settings - Fork 39
Pass Argument to uba.py
You can run uba.py from a terminal app.
You can also pass an argument to uba.py when running it.
uba.py SPEAK:::God is love
uba.py BIBLE:::KJV:::John 3:16
uba.py BIBLE:::KJV:::John 3:16 Rm 5:8
You can also pass a python script file path to uba.py, which will be executed on startup.
uba.py test.py
uba.py myStartupScript.py
Remarks: To startup with a python script, you may also use UBA "startup plugins". Read more at: https://github.com/eliranwong/UniqueBible/wiki/UBA-Startup-Plugins
If you use standard UBA bible verse parser and your argument contains mixed text rather than a standard UBA command, uba.py will parse it and extract all bible references from it, if any, e.g.
uba.py My favourite verses are John 3:16 and Rm 5:8
In the example above, standard parser will extract bible references John 3:16 and Rm 5:8, which are then opened on startup.
To enable cli feature, you need to enable command line interface by passing either "cli" or "gui" to "uba.py", i.e.
uba.py cli
or
uba.py gui
Read more information at: https://github.com/eliranwong/UniqueBible/wiki/Command-Line-Interface
uba.py telnet-server
Read more information at: https://github.com/eliranwong/UniqueBible/wiki/Remote-CLI