aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.core/errc.ccm
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-07-03 19:46:01 +0100
committerLexi Winter <lexi@le-fay.org>2025-07-03 19:46:01 +0100
commite9609dfea5a8210f9e1a23c0d80f53df7664e71a (patch)
treec07fe2e0a47ee8d5a93d135752e4d0f2dba7424e /nihil.core/errc.ccm
parentc5a27de4bc520a9ac3538e8960097a8a65428182 (diff)
downloadnihil-e9609dfea5a8210f9e1a23c0d80f53df7664e71a.tar.gz
nihil-e9609dfea5a8210f9e1a23c0d80f53df7664e71a.tar.bz2
cli: add a basic command-line option parserHEADmain
Diffstat (limited to 'nihil.core/errc.ccm')
-rw-r--r--nihil.core/errc.ccm5
1 files changed, 4 insertions, 1 deletions
diff --git a/nihil.core/errc.ccm b/nihil.core/errc.ccm
index fe36274..7f57fec 100644
--- a/nihil.core/errc.ccm
+++ b/nihil.core/errc.ccm
@@ -9,9 +9,10 @@ export enum struct errc : std::uint8_t {
no_error = 0,
///////////////////////////////////////////////////////////////
- // nihil.command
+ // nihil.cli
incomplete_command,
+ usage_error,
///////////////////////////////////////////////////////////////
// nihil.ucl
@@ -43,6 +44,8 @@ struct nihil_error_category final : std::error_category
return "No error";
case errc::incomplete_command:
return "Incomplete command";
+ case errc::usage_error:
+ return "Usage error";
case errc::empty_string:
return "Empty string is not permitted";
case errc::invalid_unit: