Pointing at the error: compiler-style diagnostics in uutils coreutils

22 points by mpweiher


eta

Is it just me who finds this kind of diagnostic slightly overkill? I think for compilers it makes a lot of sense since the inputs are big text files, but getting 5 lines of diagnostic splat for 1 line of shell input is almost harder to read for me.

zesterer

Oh, neat! I did not expect ariadne to make it to places like this.

Fwiw, if the author sees this, ariadne also has a 'compact' mode which might be a better default for uutils: less padding space.

gignico

Are there Rust crates helping with the rendering of these messages, or each tool is on its own? It may help with a tool I’m writing.

stephank

Would be rad if it could point at your actual command input, instead of duplicating the command in its own output. But I imagine that's probably super tricky. :)

evmar

Does anyone know why these kinds of tools often include colored strings like "help:" or "hint:" in their output? I get that there is some internal representation that might match that, but isn't all the output help and hints? What is the purpose of the label?