-
Notifications
You must be signed in to change notification settings - Fork 205
Closed
Description
Changes made in #503 introduced a call to lib.cli.toGNUCommandLineShell but it does not call mkOption on names so they are without dashes. I have reproduced the issue with expression
{
pkgs ? import <nixpkgs> { },
}:
let
inherit (pkgs) lib;
settings = {
format = [ "errfmt" ];
ignore = [ "hardware-config.nix" ];
};
in
{
goodOptions = lib.cli.toGNUCommandLineShell { } settings;
badOptions = lib.cli.toGNUCommandLineShell {
mkList = name: value: [ name ] ++ lib.unique value;
} settings;
}.
Here goodOptions evaluates to '--format' 'errfmt' '--ignore' 'hardware-config.nix' and badOptions to 'format' 'errfmt' 'ignore' 'hardware-config.nix'.
sandydoo
Metadata
Metadata
Assignees
Labels
No labels