<varlistentry>
<term><option>--root=<replaceable>PATH</replaceable></option></term>
- <listitem><para>With <command>cat-files</command> and <command>verify</command>,
- operate on files underneath the specified root path <replaceable>PATH</replaceable>.</para>
+ <listitem><para>With <command>cat-config</command>, <command>verify</command>,
+ <command>condition</command> and <command>security</command> when used with
+ <option>--offline=</option>, operate on files underneath the specified root path
+ <replaceable>PATH</replaceable>.</para>
<xi:include href="version-info.xml" xpointer="v239"/></listitem>
</varlistentry>
<varlistentry>
<term><option>--image=<replaceable>PATH</replaceable></option></term>
- <listitem><para>With <command>cat-files</command> and <command>verify</command>,
- operate on files inside the specified image path <replaceable>PATH</replaceable>.</para>
+ <listitem><para>With <command>cat-config</command>, <command>verify</command>,
+ <command>condition</command> and <command>security</command> when used with
+ <option>--offline=</option>, operate on files inside the specified image path
+ <replaceable>PATH</replaceable>.</para>
<xi:include href="version-info.xml" xpointer="v250"/></listitem>
</varlistentry>
" specified time\n"
" --profile=name|PATH Include the specified profile in the\n"
" security review of the unit(s)\n"
+ " --unit=UNIT Evaluate conditions and asserts of unit\n"
" --table Output plot's raw time data as a table\n"
" -h --help Show this help\n"
" --version Show package version\n"
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"Option --offline= is only supported for security right now.");
+ if (arg_offline && optind >= argc - 1)
+ return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
+ "Option --offline= requires one or more units to perform a security review.");
+
if (arg_json_format_flags != JSON_FORMAT_OFF && !STRPTR_IN_SET(argv[optind], "security", "inspect-elf", "plot", "fdstore", "pcrs", "architectures", "capability", "exit-status"))
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"Option --json= is only supported for security, inspect-elf, plot, fdstore, pcrs, architectures, capability, exit-status right now.");