feat(parseArgs): Native implementation of parseArgs from node:util (#7310)

* Native implementation of parseArgs from node:util

* small change to validators + added some docs
This commit is contained in:
Otger Rogla
2023-12-01 01:34:44 +01:00
committed by GitHub
parent 90654143bb
commit 70039ff038
15 changed files with 2847 additions and 7 deletions

View File

@@ -1094,4 +1094,13 @@ pub const Code = enum {
/// Used when an attempt is made to use a zlib object after it has already been closed.
/// CPU USAGE
ERR_CPU_USAGE,
/// Used by node:util parseArgs
ERR_PARSE_ARGS_INVALID_OPTION_VALUE,
/// Used by node:util parseArgs
ERR_PARSE_ARGS_UNKNOWN_OPTION,
/// Used by node:util parseArgs
ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL,
};