diff --git a/modules/commands.nix b/modules/commands.nix index ae564c80..9ca743e2 100644 --- a/modules/commands.nix +++ b/modules/commands.nix @@ -16,8 +16,8 @@ let nargs = helpers.mkNullOrOption (types.enum [ - "0" - "1" + 0 + 1 "*" "?" "+" diff --git a/tests/test-sources/modules/commands.nix b/tests/test-sources/modules/commands.nix index f65a5016..5597e12a 100644 --- a/tests/test-sources/modules/commands.nix +++ b/tests/test-sources/modules/commands.nix @@ -4,6 +4,7 @@ "W" = { command = ":w"; desc = "Write file"; + nargs = 0; }; "Z" = { command = ":echo fooo";