diff options
author | Dylan Smith <dylan.ah.smith@gmail.com> | 2010-11-26 19:00:18 +0800 |
---|---|---|
committer | Grissiom <chaos.proton@gmail.com> | 2010-11-26 19:00:18 +0800 |
commit | 4ccf26fbcc3bfd27ed2f1638254bd9f4b92dbd52 (patch) | |
tree | 3cb83a2c829fd1cb1796d522b9252b67e9af91a9 /builtin.c | |
parent | 081e277fe4ce510687405d1b0ef71041a282e02d (diff) |
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>
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3871,7 +3871,7 @@ static int internal_help( wchar_t *cmd ) { CHECK( cmd, 0 ); return contains( cmd, L"for", L"while", L"function", - L"if", L"end", L"switch" ); + L"if", L"end", L"switch", L"count" ); } |