forked from lix-project/lix
doc: showOptions
: Move union to caller
`showOptions` itself doesn't care, so it shouldn't take two separate arguments.
This commit is contained in:
parent
f89b84919c
commit
694810ba34
|
@ -78,16 +78,15 @@ let
|
|||
maybeOptions = optionalString (details.flags != {}) ''
|
||||
# Options
|
||||
|
||||
${showOptions details.flags toplevel.flags}
|
||||
${showOptions (details.flags // toplevel.flags)}
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> See [`man nix.conf`](@docroot@/command-ref/conf-file.md#command-line-flags) for overriding configuration settings with command line flags.
|
||||
'';
|
||||
|
||||
showOptions = options: commonOptions:
|
||||
showOptions = allOptions:
|
||||
let
|
||||
allOptions = options // commonOptions;
|
||||
showCategory = cat: ''
|
||||
${optionalString (cat != "") "**${cat}:**"}
|
||||
|
||||
|
|
Loading…
Reference in a new issue