</varlistentry>
<varlistentry>
- <term><option>--tools=<replaceable>DIR</replaceable></option></term>
+ <term><option>--tools=<replaceable>DIRS</replaceable></option></term>
- <listitem><para>Specify a directory with helper tools. <command>ukify</command> will look for helper
- tools in that directory first, and if not found, try to load them from <varname>$PATH</varname> in
- the usual fashion.</para></listitem>
+ <listitem><para>Specify one or more directories with helper tools. <command>ukify</command> will look
+ for helper tools in those directories first, and if not found, try to load them from
+ <varname>$PATH</varname> in the usual fashion.</para></listitem>
</varlistentry>
<varlistentry>
def find_tool(name, fallback=None, opts=None):
if opts and opts.tools:
- tool = opts.tools / name
- if tool.exists():
- return tool
+ for d in opts.tools:
+ tool = d / name
+ if tool.exists():
+ return tool
return fallback or name
p.add_argument('--tools',
type=pathlib.Path,
- help='a directory with systemd-measure and other tools')
+ nargs='+',
+ help='Directories to search for tools (systemd-measure, llvm-objcopy, ...)')
p.add_argument('--output', '-o',
type=pathlib.Path,