File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ inline argval const& args::operator[](string_view name) const
191
191
192
192
for (auto const & el : params_) if (el.name_ == name) return el.values_ ;
193
193
}
194
- throw invalid_argument{" bad option or param " + q (string{name})};
194
+ throw invalid_argument{" unrecognized option or param " + q (string{name})};
195
195
}
196
196
197
197
// //////////////////////////////////////////////////////////////////////////////
@@ -256,7 +256,7 @@ inline void args::parse(int argc, char* argv[])
256
256
auto pred = [&](auto const & el){ return el.short_ == name || el.long_ == name; };
257
257
258
258
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)};
260
260
261
261
else if (it->valname_ .empty ()) // doesn't take values
262
262
{
You can’t perform that action at this time.
0 commit comments