mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
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
1 changed files with 2 additions and 3 deletions
|
@ -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