]> 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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 27 Apr 2025 01:41:34 +0000 (10:41 +0900)
Also, in a futre remaining commands may also support the option.
Let's not mention which command support the options.

Closes #37210.

man/busctl.xml

index 3733d523e5ffc2bf38792303940f2c4642b20c25..9e5e19063c341652a327daafb44b54d03afa7ba3 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" />