From e9609dfea5a8210f9e1a23c0d80f53df7664e71a Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Thu, 3 Jul 2025 19:46:01 +0100 Subject: cli: add a basic command-line option parser --- nihil.core/errc.ccm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nihil.core') 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: -- cgit v1.2.3