summaryrefslogtreecommitdiffstats
path: root/carg_parser.c
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 05:06:11 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 05:06:11 +0000
commit287887ae1eaaa75243f2adbff20b816b8fc7a381 (patch)
tree0b08eefdcd7bb8040d948877c6322397ff8f840e /carg_parser.c
parentAdding debian version 1.5~rc2-2. (diff)
downloadlunzip-287887ae1eaaa75243f2adbff20b816b8fc7a381.tar.xz
lunzip-287887ae1eaaa75243f2adbff20b816b8fc7a381.zip
Merging upstream version 1.5.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'carg_parser.c')
-rw-r--r--carg_parser.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/carg_parser.c b/carg_parser.c
index 1dfcb2b..80e60c1 100644
--- a/carg_parser.c
+++ b/carg_parser.c
@@ -176,7 +176,8 @@ static char parse_short_option( struct Arg_parser * const ap,
if( index < 0 )
{
- add_error( ap, "invalid option -- " ); add_error( ap, code_str );
+ add_error( ap, "invalid option -- '" ); add_error( ap, code_str );
+ add_error( ap, "'" );
return 1;
}
@@ -191,8 +192,8 @@ static char parse_short_option( struct Arg_parser * const ap,
{
if( !arg || !arg[0] )
{
- add_error( ap, "option requires an argument -- " );
- add_error( ap, code_str );
+ add_error( ap, "option requires an argument -- '" );
+ add_error( ap, code_str ); add_error( ap, "'" );
return 1;
}
++*argindp; cind = 0;