1
0
Fork 0

Merging upstream version 1.3~pre1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-24 05:48:02 +01:00
parent 10a38762e2
commit 2cbf3271a3
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
31 changed files with 976 additions and 1312 deletions

View file

@ -4,7 +4,7 @@
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This library is distributed in the hope that it will be useful,
@ -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;