Skip to content

Commit a73fd40

Browse files
"bad" -> "unrecognized"
1 parent 08be187 commit a73fd40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

args.ipp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ inline argval const& args::operator[](string_view name) const
191191

192192
for(auto const& el : params_) if(el.name_ == name) return el.values_;
193193
}
194-
throw invalid_argument{"bad option or param " + q(string{name})};
194+
throw invalid_argument{"unrecognized option or param " + q(string{name})};
195195
}
196196

197197
////////////////////////////////////////////////////////////////////////////////
@@ -256,7 +256,7 @@ inline void args::parse(int argc, char* argv[])
256256
auto pred = [&](auto const& el){ return el.short_ == name || el.long_ == name; };
257257

258258
auto it = std::find_if(options_.begin(), options_.end(), pred);
259-
if(it == options_.end()) throw invalid_argument{"bad option " + q(name)};
259+
if(it == options_.end()) throw invalid_argument{"unrecognized option " + q(name)};
260260

261261
else if(it->valname_.empty()) // doesn't take values
262262
{

0 commit comments

Comments
 (0)