Raw mode works the same with or without a tty

pull/14/head
chris west 4 years ago
parent b529e9c1cb
commit bdcc3c9d0d

@ -176,7 +176,7 @@ pub fn parse<T: AsRef<str>>(args: &[T]) -> Result<Config, ArgError> {
#[cfg(not(test))]
{
if !atty::is(atty::Stream::Stdout) {
if !atty::is(atty::Stream::Stdout) && cfg.mode != Mode::Raw {
cfg.mode = Mode::NoTTY;
}
}

Loading…
Cancel
Save