Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 2, 2024
1 parent 75c0005 commit 62f058f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitpicker.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{
"user": "p-ranav",
"repo": "argparse",
"branch": "eab1d75e49970857eba1fdef5afb68befa2fa16f",
"branch": "e462ab980c0852bd1df2ee1f4ec81826246b6f21",
"root": "include/argparse",
"file": [
"argparse.hpp"
Expand Down
3 changes: 2 additions & 1 deletion argparse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,8 @@ class Argument {
std::bind(is_optional, std::placeholders::_1, m_prefix_chars));
dist = static_cast<std::size_t>(std::distance(start, end));
if (dist < num_args_min) {
throw std::runtime_error("Too few arguments");
throw std::runtime_error("Too few arguments for '" +
std::string(m_used_name) + "'.");
}
}

Expand Down

0 comments on commit 62f058f

Please sign in to comment.