implemented inline method: --exit

A more standard way to match the exit code of commands. Useful for
commands that return variable output, or no output at all. In case of
failure it returns the specific message noting the exit codes.