From 3ee263ee144104da4e29c7fa8212d0613493396f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 16 Jul 2020 17:02:10 +0300 Subject: [PATCH] planning and notes... Signed-off-by: Alex A. Naanou --- argv.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/argv.js b/argv.js index 2a06dc8..d73d620 100644 --- a/argv.js +++ b/argv.js @@ -186,13 +186,19 @@ var afterCallback = function(name, pre, post){ // NOTE: essentially this parser is a very basic stack language... // XXX can we implement the whole thing directly as a stack language??? // -// XXX should a flag have more than one value??? -// XXX can we add more prefixes, like '+' and the like??? -// ...add prefix handlers??? +// +// XXX FEATURE: handle - script calls... +// +// XXX FEATURE (DELAYED): read metadata from package.json... +// ...not clear which package json to get, needs more thought... +// XXX FEATURE (DELAYED): handle multiple values per flag... +// ...manually this is trivial, automating it would complicate things, +// will think about it when we need this feature more than once... +// XXX FEATURE (DELAYED): multiple prefixes, like '+' and the like... +// +// // XXX should -help should work for any command? ..not just nested parsers? // ...should we indicate which thinks have more "-help"?? -// XXX might be a good idea to read metadata from package.json -// XXX should we handle - script calls??? // XXX might be a good idea to use exceptions for ERROR... var Parser = module.Parser =