diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/helpers/vyconf_cli.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/helpers/vyconf_cli.py b/src/helpers/vyconf_cli.py index 53542dd63..9a614675b 100755 --- a/src/helpers/vyconf_cli.py +++ b/src/helpers/vyconf_cli.py @@ -39,9 +39,12 @@ if hasattr(vs, func_name): else: sys.exit(f'Call unimplemented: {func_name}') -out = func() -if isinstance(out, bool): +res = func() +if isinstance(res, bool): # for use in shell scripts - sys.exit(int(not out)) + sys.exit(int(not res)) -print(out) +if isinstance(res, tuple): + out, err = res + print(out) + sys.exit(err) |
