<p dir="auto">Something like <code class="notranslate">gofmt</code> is really useful.</p>
<p dir="auto">It would be really nice to have the pretty printer be good enough to use it as a code formatter, ala gofmt. It still has some issues (I've been working on it), but it is reasonably close to being usable in that way.</p>
<p dir="auto">But, the commandline invocation is kind of unwieldy (and feels redundant). It seems like --pretty should just pretty print, and other stuff should be handled secondarily, ie with:</p>
<p dir="auto">--pretty-expanded<br>
--pretty-typed<br>
--pretty-expanded-identified<br>
--pretty-identified</p>
<p dir="auto">Alternatively, perhaps it would make more sense to actually split it into a separate binary, called rustfmt (or, in longer-keyword land, rustformat).</p>
<p dir="auto">Thoughts?</p>