From f270f24a82a9d4a04c895d9748768468264b76f3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 22 Jun 2020 16:56:29 +0300 Subject: [PATCH] working on defaults, still not happy... Signed-off-by: Alex A. Naanou --- argv.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/argv.js b/argv.js index 4fb98cb..2e4c026 100644 --- a/argv.js +++ b/argv.js @@ -560,6 +560,22 @@ object.Constructor('Parser', { }) +// defaults... +// XXX do we do execution order??? +// ...if these will do process.exit(..) then they need to be last... +Parser.prototype + .then(function(){ + // XXX + }) + .stop(function(){ + // XXX + }) + .error(function(){ + // XXX + }) + + + /********************************************************************** * vim:set ts=4 sw=4 : */ return module })