yangcli-pro can be used from the command line, typically to connect to a server, perform some tasks, and exit.


> yangcli-pro --run-script=my-test-script


If an error occurs during a script, the script will exit to the command line, waiting for input.

This is because yangcli-pro is operating in "interactive" mode by default.


In order to make yangcli-pro simply quit and return back to the shell that launched yangcli-pro,

you need to run yangcli-pro in "batch" mode.  This will prevent yangcli-pro from ever prompting

for input.  The program will terminate instead of prompting for input:


yangcli-pro --run-script=my-test-script --batch-mode