summaryrefslogtreecommitdiffstats
path: root/arg_parser.cc
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 10:03:48 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 10:03:48 +0000
commita07bce9ade8256e0e7efcd8e24fabf0646cc8405 (patch)
tree0b961f9614afe8a01cc164e6a17a56edb9e0fed7 /arg_parser.cc
parentAdding debian version 1.16~pre1-2. (diff)
downloadlzip-a07bce9ade8256e0e7efcd8e24fabf0646cc8405.tar.xz
lzip-a07bce9ade8256e0e7efcd8e24fabf0646cc8405.zip
Merging upstream version 1.16~pre2.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'arg_parser.cc')
-rw-r--r--arg_parser.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/arg_parser.cc b/arg_parser.cc
index 5cb98a9..44e158e 100644
--- a/arg_parser.cc
+++ b/arg_parser.cc
@@ -1,5 +1,5 @@
/* Arg_parser - POSIX/GNU command line argument parser. (C++ version)
- Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
+ Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
Antonio Diaz Diaz.
This library is free software: you can redistribute it and/or modify
@@ -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;