Pass Argument to uba.py - eliranwong/UniqueBible GitHub Wiki

uba.py Argument

You can run uba.py from a terminal app.

You can also pass an argument to uba.py when running it.

Pass a UBA command, e.g.

uba.py SPEAK:::God is love

uba.py BIBLE:::KJV:::John 3:16

uba.py BIBLE:::KJV:::John 3:16 Rm 5:8

Pass a python script

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

Mixed text

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.

Command Line Interface

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

Run UBA as a telnet server

uba.py telnet-server

Read more information at: https://github.com/eliranwong/UniqueBible/wiki/Remote-CLI