The OpenD Programming Language

CliResult

If your function returns CliResult, you can return a value and some output in one object.

Note that output and error are written to stdout and stderr, in addition to whatever the function did inside. It does NOT represent captured stuff, it is just a function return value.

struct CliResult {
int returnValue;
string output;
string error;
}

Meta