1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 03:25:27 +03:00

Merge pull request #11519 from yuwata/udevadm-info-2476

udevadm info: make -P imply -x and update man page
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-01-22 08:30:26 +01:00 committed by GitHub
commit 0a44684bcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -143,22 +143,25 @@
<term><option>-x</option></term>
<term><option>--export</option></term>
<listitem>
<para>Print output as key/value pairs. Values are enclosed in single quotes.</para>
<para>Print output as key/value pairs. Values are enclosed in single quotes.
This takes effects only when <option>--query=property</option> or
<option>--device-id-of-file=<replaceable>FILE</replaceable></option> is specified.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-P</option></term>
<term><option>--export-prefix=<replaceable>NAME</replaceable></option></term>
<listitem>
<para>Add a prefix to the key name of exported values.</para>
<para>Add a prefix to the key name of exported values.
This implies <option>--export</option>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-d</option></term>
<term><option>--device-id-of-file=<replaceable>FILE</replaceable></option></term>
<listitem>
<para>Print major/minor numbers of the underlying device, where the file
lives on.</para>
<para>Print major/minor numbers of the underlying device, where the file lives on.
If this is specified, all positional arguments are ignored.</para>
</listitem>
</varlistentry>
<varlistentry>

View File

@ -411,6 +411,7 @@ int info_main(int argc, char *argv[], void *userdata) {
arg_export = true;
break;
case 'P':
arg_export = true;
arg_export_prefix = optarg;
break;
case 'V':