Don't force use of PAGER
Current release (0.5.14) always sends output to pager, whatever the output's length. It interrupts the flow by switching to a different buffer, outputing at the top of the terminal, and disappearing at the end (this behaviour depends on your pager's setting, mine is PAGER=/usr/bin/less LESS="-R -M --shift 5" LESSOPEN="|lesspipe %s"
).
One can work around this behaviour by calling cargo info ... | cat
, but that's un-idiomatic. Most CLI tools and (more importantly all other cargo commands that I could find) output to stdout and the user can |$PAGER
if desired. Some tools like git log
do use a pager, but that's because they generally have a very long output. In contrast, Cargo-info output is usually less than a screenful, unless you ask for all versions.
I'd argue that cargo-info should not auto-pager at all, but somebody apparently wants the feature, so maybe it could go behind a flag, or only get used for long outputs ?