From da2a757dffde23aabaae42e10d78b562559fa123 Mon Sep 17 00:00:00 2001 From: axel Date: Sun, 4 Jun 2006 08:31:50 +1000 Subject: [PATCH] Add missing help message for a few errors in the set builtin darcs-hash:20060603223150-ac50b-b2c731e724410a8a192655940064be307214c149.gz --- builtin_set.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builtin_set.c b/builtin_set.c index 5fc9b52d0..3db78504a 100644 --- a/builtin_set.c +++ b/builtin_set.c @@ -624,6 +624,7 @@ int builtin_set( wchar_t **argv ) { free( dest ); sb_printf( sb_err, BUILTIN_ERR_VARNAME_ZERO, argv[0] ); + builtin_print_help( argv[0], sb_err ); return 1; } @@ -650,6 +651,7 @@ int builtin_set( wchar_t **argv ) { if( !parse_index( &indexes, argv[woptind], dest ) ) { + builtin_print_help( argv[0], sb_err ); retcode = 1; break; } @@ -662,6 +664,7 @@ int builtin_set( wchar_t **argv ) if( val_count < idx_count ) { sb_printf( sb_err, _(BUILTIN_SET_ARG_COUNT), argv[0] ); + builtin_print_help( argv[0], sb_err ); retcode=1; break; } @@ -733,6 +736,7 @@ int builtin_set( wchar_t **argv ) _(L"%ls: Values cannot be specfied with erase\n%ls\n"), argv[0], parser_current_line() ); + builtin_print_help( argv[0], sb_err ); retcode=1; } else