generate-manpage.nix: Fix short names

This commit is contained in:
Eelco Dolstra 2020-12-08 17:34:45 +01:00
parent 09660b8557
commit 9dcd0aebc5
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -43,7 +43,7 @@ let
if flag.category or "" != "config"
then
" - `--${longName}`"
+ (if flag ? shortName then " / `${flag.shortName}`" else "")
+ (if flag ? shortName then " / `-${flag.shortName}`" else "")
+ (if flag ? labels then " " + (concatStringsSep " " (map (s: "*${s}*") flag.labels)) else "")
+ " \n"
+ " " + flag.description + "\n\n"