replace example.nix with:
{ pkgs ? import <nixpkgs> {} }:
let climod = pkgs.callPackage ./default.nix { inherit pkgs; };
in climod {
name = "multiple-flags";
description = "Test multiple flags";
action.bash = ''
echo "A: ''${A:-}"
echo "B: ''${B:-}"
'';
flags = [
{
description = "Flag a";
keywords = ["-a"];
variable = "A";
}
{
description = "Flag b";
keywords = ["-b"];
variable = "B";
}
];
}
and then run with:
$(nix-build example.nix)/bin/* -a aaa -b bbb
expected output:
actual output:
removing the following lines seems to help:
replace example.nix with:
and then run with:
expected output:
actual output:
removing the following lines seems to help:
climod/modules/generators/bash/common.nix
Line 105 in 64f6c54