From 1f9c10664fb33107c4d175e1c5553b23a1f34550 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 7 Nov 2015 16:37:29 +0100 Subject: Adding upstream version 1.2~rc1. Signed-off-by: Daniel Baumann --- arg_parser.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'arg_parser.cc') diff --git a/arg_parser.cc b/arg_parser.cc index 7d98ffe..44e158e 100644 --- a/arg_parser.cc +++ b/arg_parser.cc @@ -120,7 +120,7 @@ bool Arg_parser::parse_short_option( const char * const opt, const char * const if( index < 0 ) { - error_ = "invalid option -- "; error_ += c; + error_ = "invalid option -- '"; error_ += c; error_ += '\''; return false; } @@ -135,7 +135,8 @@ bool Arg_parser::parse_short_option( const char * const opt, const char * const { if( !arg || !arg[0] ) { - error_ = "option requires an argument -- "; error_ += c; + error_ = "option requires an argument -- '"; error_ += c; + error_ += '\''; return false; } data.back().argument = arg; ++argind; cind = 0; -- cgit v1.2.3