mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
backport fix for the --help
output
This commit is contained in:
parent
78fd621397
commit
a68bf15fe6
4 changed files with 18 additions and 14 deletions
|
@ -44,10 +44,10 @@ rec {
|
|||
|
||||
optionalString = cond: string: if cond then string else "";
|
||||
|
||||
showSetting = { useAnchors }: name: { description, documentDefault, defaultValue, aliases, value, experimentalFeature }:
|
||||
showSetting = { inlineHTML }: name: { description, documentDefault, defaultValue, aliases, value, experimentalFeature }:
|
||||
let
|
||||
result = squash ''
|
||||
- ${if useAnchors
|
||||
- ${if inlineHTML
|
||||
then ''<span id="conf-${name}">[`${name}`](#conf-${name})</span>''
|
||||
else ''`${name}`''}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue