aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor C. Richberger <Taywee@gmx.com>2016-06-14 19:54:22 -0600
committerTaylor C. Richberger <Taywee@gmx.com>2016-06-14 19:54:22 -0600
commita57ebfa9b369a206b8c9d0acfc422ae758471471 (patch)
treeb712e409fd8b35225dafedb96246349663e1f28d
parentMerge branch '19-disallow-multiple-arguments-for-a-the-same-value-flag' into ... (diff)
downloadargs.hxx-a57ebfa9b369a206b8c9d0acfc422ae758471471.tar.xz
improve wording of ExtraError
-rw-r--r--args.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/args.hxx b/args.hxx
index 26cb4f6..3553499 100644
--- a/args.hxx
+++ b/args.hxx
@@ -420,7 +420,7 @@ namespace args
if (extraError && matched)
{
std::ostringstream problem;
- problem << "Flag '" << flag << "' was passed multiple times, but should only be allowed to be passed once";
+ problem << "Flag '" << flag << "' was passed multiple times, but is only be allowed to be passed once";
throw ExtraError(problem.str());
}
matched = true;
@@ -436,7 +436,7 @@ namespace args
if (extraError && matched)
{
std::ostringstream problem;
- problem << "Flag '" << flag << "' was passed multiple times, but should only be allowed to be passed once";
+ problem << "Flag '" << flag << "' was passed multiple times, but is only be allowed to be passed once";
throw ExtraError(problem.str());
}
matched = true;