generate-manpage.nix: Fix short names

This commit is contained in:
Eelco Dolstra
2020-12-21 13:32:27 +01:00
parent 09660b8557
commit 9dcd0aebc5
+1 -1
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"