From 64f1024eb50486466e7c8347de90dc9d7bfda44f Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 22 Jan 2007 00:55:27 +1000 Subject: Make all error messages from options parsin in builtins redirectable darcs-hash:20070121145527-ac50b-1375af219a5eba6167e99d3fe24b26dba60eba2a.gz --- builtin_complete.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'builtin_complete.c') diff --git a/builtin_complete.c b/builtin_complete.c index 1717e5de..9fa4a1a4 100644 --- a/builtin_complete.c +++ b/builtin_complete.c @@ -474,10 +474,7 @@ static int builtin_complete( wchar_t **argv ) return 0; case '?': - sb_append( sb_err, - parser_current_line() ); - builtin_print_help( argv[0], sb_err ); - + builtin_unknown_option( argv[0], argv[woptind-1] ); res = 1; break; -- cgit v1.2.3