summaryrefslogtreecommitdiff
path: root/src/option.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/option.h')
-rw-r--r--src/option.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/option.h b/src/option.h
index f41a1a37..35b1c893 100644
--- a/src/option.h
+++ b/src/option.h
@@ -38,6 +38,8 @@
* @author John Wiegley
*
* @ingroup expr
+ *
+ * @brief Basic type and macros for handling command-line options
*/
#pragma once
@@ -169,7 +171,7 @@ public:
if (args.size() < 2)
throw_(std::runtime_error, _f("No argument provided for %1%") % desc());
else if (args.size() > 2)
- throw_(std::runtime_error, _f("To many arguments provided for %1%") % desc());
+ throw_(std::runtime_error, _f("Too many arguments provided for %1%") % desc());
else if (! args[0].is_string())
throw_(std::runtime_error, _f("Context argument for %1% not a string") % desc());
on(args.get<string>(0), args.get<string>(1));