systemctl: print the legend regardless of stdout type, add --no-legend

Print the legend (the column headers and the footer with hints) by
default even to non-tty output. People seem to get confused by the
difference when they redirect the output.

Add a parameter to suppress the printing of the legend.

Related-to: https://bugzilla.redhat.com/show_bug.cgi?id=713567
This commit is contained in:
Michal Schmidt
2011-09-27 12:10:27 +02:00
parent 4a8e40ebd0
commit ebed32bfe8
2 changed files with 18 additions and 2 deletions
+8
View File
@@ -197,6 +197,14 @@
enqueued.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--no-legend</option></term>
<listitem><para>Do not print a legend, i.e.
the column headers and the footer with hints.
</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--no-pager</option></term>