fix: refactor inconsistent behavior on CLI::write() and CLI::error()
#14108
Loading
CLI::write() and CLI::error()
#14108