aboutsummaryrefslogtreecommitdiff
path: root/args.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'args.hxx')
-rw-r--r--args.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/args.hxx b/args.hxx
index b8217d9..93e4464 100644
--- a/args.hxx
+++ b/args.hxx
@@ -1452,10 +1452,10 @@ namespace args
{
#ifdef ARGS_NOEXCEPT
error = Error::Help;
+ return this;
#else
throw Help(arg);
#endif
- return this;
}
return nullptr;
}
@@ -1466,10 +1466,10 @@ namespace args
{
#ifdef ARGS_NOEXCEPT
error = Error::Help;
+ return this;
#else
throw Help(std::string(1, arg));
#endif
- return this;
}
return nullptr;
}