]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/busctl: many other commands can take --json=/-j
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 26 Apr 2025 01:35:38 +0000 (10:35 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 17 May 2025 11:43:20 +0000 (12:43 +0100)
Also, in a futre remaining commands may also support the option.
Let's not mention which command support the options.

Closes #37210.

(cherry picked from commit 531cf425e839dfc5eff2c1177ba2bf172de3170b)
(cherry picked from commit 3d2283f4010d5f177f076b67a740c0b6aad29ce4)

man/busctl.xml

index 27327ee1928ca76f51bcf66fa946b50c44400be9..69e1eb3d05b6ecb1e6ec2afcbf219147c526cf4a 100644 (file)
         </listitem>
       </varlistentry>
 
-      <varlistentry>
-        <term><option>--json=<replaceable>MODE</replaceable></option></term>
-
-        <listitem>
-          <para>When used with the <command>call</command> or <command>get-property</command> command, shows output
-          formatted as JSON. Expects one of <literal>short</literal> (for the shortest possible output without any
-          redundant whitespace or line breaks) or <literal>pretty</literal> (for a pretty version of the same, with
-          indentation and line breaks). Note that transformation from D-Bus marshalling to JSON is done in a loss-less
-          way, which means type information is embedded into the JSON object tree.</para>
-
-        <xi:include href="version-info.xml" xpointer="v240"/>
-        </listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>-j</option></term>
-
-        <listitem>
-          <para>Equivalent to <option>--json=pretty</option> when invoked interactively from a terminal. Otherwise
-          equivalent to <option>--json=short</option>, in particular when the output is piped to some other
-          program.</para>
-
-        <xi:include href="version-info.xml" xpointer="v240"/>
-        </listitem>
-      </varlistentry>
-
       <varlistentry>
         <term><option>--expect-reply=<replaceable>BOOL</replaceable></option></term>
 
         </listitem>
       </varlistentry>
 
+      <xi:include href="standard-options.xml" xpointer="json" />
+      <xi:include href="standard-options.xml" xpointer="j" />
       <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="help" />