From b67487a0a1a19d7fa5482a5f85237b76e9bed22a Mon Sep 17 00:00:00 2001 From: John Gee Date: Mon, 24 Jan 2022 19:04:14 +1300 Subject: [PATCH] docs: clarify short options hopefully coming --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index e11fcfa..4f23d77 100644 --- a/README.md +++ b/README.md @@ -195,8 +195,7 @@ const { flags, values, positionals } = parseArgs(argv, options); - Does the API specify whether a `--` was present/relevant? - no - Is `-foo` the same as `--foo`? - - yes <-- ! kind of a blocker for shortopts ! - - Recommend: "No, -foo is shortopts form of --f --o --o" (assuming none are defined, or withValues) + - no, `-foo` is a short option or options (WIP: https://github.com/pkgjs/parseargs/issues/2) - Is `---foo` the same as `--foo`? - no - the first flag would be parsed as `'-foo'`