diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:37:29 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:37:29 +0000 |
commit | 1f9c10664fb33107c4d175e1c5553b23a1f34550 (patch) | |
tree | 31e3e20c66e2e5fe93ff4522e05bad9882b49afa /arg_parser.cc | |
parent | Adding upstream version 1.2~pre1. (diff) | |
download | plzip-1f9c10664fb33107c4d175e1c5553b23a1f34550.tar.xz plzip-1f9c10664fb33107c4d175e1c5553b23a1f34550.zip |
Adding upstream version 1.2~rc1.upstream/1.2_rc1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'arg_parser.cc')
-rw-r--r-- | arg_parser.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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; |