From f5295ce3ae7556b72d4e6dd39810fab5aac037ca Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 14 Aug 2020 15:50:24 +0300 Subject: [PATCH] docs... Signed-off-by: Alex A. Naanou --- package.json | 5 ++++- test.js | 10 ++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 29993bb..b70d573 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,11 @@ { "name": "ig-test", - "version": "1.2.0", + "version": "1.2.1", "description": "experimental test runner....", "main": "test.js", + "bin": { + "runtests": "test.js" + }, "scripts": { "test": "node test-test.js" }, diff --git a/test.js b/test.js index 1d32efe..e281c14 100644 --- a/test.js +++ b/test.js @@ -424,14 +424,16 @@ argv.Parser({ '-l': '-list', '-list': { - doc: ['list available tests.', + doc: ['list available tests;', 'note that if passing files via -f explicitly they', - 'must precede the -list flag.'], + 'must precede the -l/-list flag;', + 'this has the same defaults as -f'], arg: 'PATH', handler: function(args, key, path){ path = path || this.default_files // load path or the defaults if nothing loaded... - ;(path != this.default_files + path + && (path != this.default_files || this.test_modules == null) && this.handle('-f', [], key, path) // get key value... @@ -474,7 +476,7 @@ argv.Parser({ // XXX revise error handling... '-f': '-test-file', '-test-file': { - doc: ['test script or filename patter, supports glob.', + doc: ['test script or filename pattern, supports glob;', 'this flag can be given multiple times for', 'multiple paths/patterns'], arg: 'PATH',