]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: share a common explanation for --json= 18338/head
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Jan 2021 17:21:41 +0000 (18:21 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Jan 2021 17:21:41 +0000 (18:21 +0100)
man/standard-options.xml
man/systemd-dissect.xml
man/systemd-repart.xml
man/systemd-sysext.xml

index 64274ce8f31e032ffc74d3e8ebd41328c197a34a..8ba5b09df85f291e4f0803b034085e5e3e1b8494 100644 (file)
       Before each file, the filename is printed as a comment.</para>
     </listitem>
   </varlistentry>
+
+  <varlistentry id='json'>
+    <term><option>--json=</option><replaceable>MODE</replaceable></term>
+
+    <listitem><para>Shows output formatted as JSON. Expects one of <literal>short</literal> (for the
+    shortest possible output without any redundant whitespace or line breaks), <literal>pretty</literal>
+    (for a pretty version of the same, with indentation and line breaks) or <literal>off</literal> (to turn
+    off JSON output, the default).</para></listitem>
+  </varlistentry>
 </variablelist>
index 71615b10a6a215d990357381290dc3781dad2a94..fd55fd0bfb372a242f63bbc99f10d2c340f75eb3 100644 (file)
         operation begins.</para></listitem>
       </varlistentry>
 
-      <varlistentry>
-        <term><option>--json=</option><replaceable>MODE</replaceable></term>
-
-        <listitem><para>Shows output formatted as JSON. Expects one of <literal>short</literal> (for the
-        shortest possible output without any redundant whitespace or line breaks), <literal>pretty</literal>
-        (for a pretty version of the same, with indentation and line breaks) or <literal>off</literal> (to turn
-        off json output).</para></listitem>
-      </varlistentry>
-
       <xi:include href="standard-options.xml" xpointer="help" />
       <xi:include href="standard-options.xml" xpointer="version" />
     </variablelist>
 
       <xi:include href="standard-options.xml" xpointer="no-pager" />
       <xi:include href="standard-options.xml" xpointer="no-legend" />
+      <xi:include href="standard-options.xml" xpointer="json" />
     </variablelist>
 
   </refsect1>
index ee48dd9c96b14c47fb1012041e66166f436a0802..a5a0890c526c174f48ecb36fc324cabe06ed46dd 100644 (file)
         and graphic illustrating the changes applied.</para></listitem>
       </varlistentry>
 
-      <varlistentry>
-        <term><option>--json=</option><replaceable>MODE</replaceable></term>
-
-        <listitem><para>Shows output formatted as JSON. Expects one of <literal>short</literal> (for the
-        shortest possible output without any redundant whitespace or line breaks), <literal>pretty</literal>
-        (for a pretty version of the same, with indentation and line breaks) or <literal>off</literal> (to turn
-        off json output).</para></listitem>
-      </varlistentry>
-
       <varlistentry>
         <term><option>--definitions=</option></term>
 
       <xi:include href="standard-options.xml" xpointer="version" />
       <xi:include href="standard-options.xml" xpointer="no-pager" />
       <xi:include href="standard-options.xml" xpointer="no-legend" />
+      <xi:include href="standard-options.xml" xpointer="json" />
     </variablelist>
   </refsect1>
 
index 8539983bcb02a6e081beed24c4a3618360c1206d..ad6a401c7a221ab4edd5241e44823c7bce8d5178 100644 (file)
         <filename>/opt/</filename> hierarchies, but below some specified root directory.</para></listitem>
       </varlistentry>
 
-      <varlistentry>
-        <term><option>--json=</option></term>
-
-        <listitem><para>Generate JSON output, instead of human readable tabular output. Takes one of
-        <literal>short</literal>, <literal>pretty</literal> or <literal>off</literal> in order to control the
-        output style, or explicitly disabling JSON output.</para></listitem>
-      </varlistentry>
-
       <varlistentry>
         <term><option>--force</option></term>
 
 
       <xi:include href="standard-options.xml" xpointer="no-pager" />
       <xi:include href="standard-options.xml" xpointer="no-legend" />
+      <xi:include href="standard-options.xml" xpointer="json" />
     </variablelist>
   </refsect1>