</varlistentry>
<varlistentry>
+ <term><option>--xattr[=BOOL]</option></term>
<term><option>-x</option></term>
- <term><option>--xattr=</option></term>
<listitem><para>Controls whether to include information about extended attributes of the listed
- control groups in the output. With the long option, expects a boolean value. Defaults to no.
+ control groups in the output. With the long option only, optionally accepts a boolean value. Defaults
+ to no.
</para>
<xi:include href="version-info.xml" xpointer="v250"/></listitem>
</varlistentry>
<varlistentry>
+ <term><option>--cgroup-id[=BOOL]</option></term>
<term><option>-c</option></term>
- <term><option>--cgroup-id=</option></term>
<listitem><para>Controls whether to include the numeric ID of the listed control groups in the
- output. With the long option, expects a boolean value. Defaults to no.</para>
+ output. With the long option only, optionally accepts a boolean value. Defaults to no.</para>
<xi:include href="version-info.xml" xpointer="v250"/></listitem>
</varlistentry>
return log_oom();
break;
- OPTION_FULL(OPTION_OPTIONAL_ARG, 'x', "xattr", "BOOL",
- "Show cgroup extended attributes"):
+ OPTION_LONG_FLAGS(OPTION_OPTIONAL_ARG, "xattr", "BOOL",
+ "Show cgroup extended attributes"): {}
+ OPTION_SHORT('x', NULL, "Same as --xattr=true"):
if (arg) {
r = parse_boolean(arg);
if (r < 0)
SET_FLAG(arg_output_flags, OUTPUT_CGROUP_XATTRS, r);
break;
- OPTION_FULL(OPTION_OPTIONAL_ARG, 'c', "cgroup-id", "BOOL",
- "Show cgroup ID"):
+ OPTION_LONG_FLAGS(OPTION_OPTIONAL_ARG, "cgroup-id", "BOOL",
+ "Show cgroup ID"): {}
+ OPTION_SHORT('c', NULL, "Same as --cgroup-id=true"):
if (arg) {
r = parse_boolean(arg);
if (r < 0)