mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 22:14:53 +00:00
Print help message when the case builtin is misused
darcs-hash:20060719232226-ac50b-c61b4b6d498dbfbe83ee1bc4c37766e1a9662630.gz
This commit is contained in:
parent
f36811b7be
commit
a0c40fcf8d
1 changed files with 5 additions and 0 deletions
5
parser.c
5
parser.c
|
@ -3198,11 +3198,16 @@ int parser_test( const wchar_t * buff,
|
||||||
|
|
||||||
if( out )
|
if( out )
|
||||||
{
|
{
|
||||||
|
char *h;
|
||||||
|
|
||||||
error( SYNTAX_ERROR,
|
error( SYNTAX_ERROR,
|
||||||
tok_get_pos( &tok ),
|
tok_get_pos( &tok ),
|
||||||
INVALID_CASE_ERR_MSG );
|
INVALID_CASE_ERR_MSG );
|
||||||
|
|
||||||
print_errors( out, prefix);
|
print_errors( out, prefix);
|
||||||
|
h = builtin_help_get( L"case" );
|
||||||
|
if( h )
|
||||||
|
sb_printf( out, L"%s", h );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue