mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
builtin: count should not accept options, not even help
It is documented this way, but the common builtin_run function was checking for -h or --help before even calling the builtin_count. Without this functions like funced can't use count to check the number of arguments before checking for -h or --help. Signed-off-by: Grissiom <chaos.proton@gmail.com>
This commit is contained in:
parent
081e277fe4
commit
4ccf26fbcc
1 changed files with 1 additions and 1 deletions
|
@ -3871,7 +3871,7 @@ static int internal_help( wchar_t *cmd )
|
||||||
{
|
{
|
||||||
CHECK( cmd, 0 );
|
CHECK( cmd, 0 );
|
||||||
return contains( cmd, L"for", L"while", L"function",
|
return contains( cmd, L"for", L"while", L"function",
|
||||||
L"if", L"end", L"switch" );
|
L"if", L"end", L"switch", L"count" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue