summaryrefslogtreecommitdiff
path: root/src/option.h
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-04-11 22:15:36 +0200
committerAlexis Hildebrandt <afh@surryhill.net>2023-04-11 22:15:36 +0200
commit72d685a258a8632b6769f033f30ebdea84d612b2 (patch)
tree5a4d7ad2058e8c9df750741ef59a18a77aa4dd71 /src/option.h
parentca375cc8af4bb9d3a870dd0ff81e9853be216c87 (diff)
parent37c9e77a121b39e3073fb89b1bb57e00232f46d8 (diff)
downloadfork-ledger-72d685a258a8632b6769f033f30ebdea84d612b2.tar.gz
fork-ledger-72d685a258a8632b6769f033f30ebdea84d612b2.tar.bz2
fork-ledger-72d685a258a8632b6769f033f30ebdea84d612b2.zip
Merge branch 'master' into pragma-once
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));