preparing for testing...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-08-21 13:56:40 +03:00
parent 79f6fa6e93
commit 2641f377d0
3 changed files with 18 additions and 10 deletions

View File

@ -947,6 +947,9 @@ object.Constructor('Parser', {
// all the parse data...
// NOTE: this (i.e. parser) can be used as a nested command/option
// handler...
//
// XXX need to get the name of the command define in package.json's
// run key...
__call__: function(context, argv, main, root_value){
var that = this
var parsed = Object.create(this)

View File

@ -1,6 +1,6 @@
{
"name": "ig-argv",
"version": "2.13.1",
"version": "2.13.2",
"description": "simple argv parser",
"main": "argv.js",
"scripts": {
@ -23,7 +23,10 @@
},
"homepage": "https://github.com/flynx/argv.js#readme",
"dependencies": {
"colors": "^1.4.0",
"ig-object": "^5.2.6"
},
"devDependencies": {
"colors": "^1.4.0",
"ig-test": "^1.4.3"
}
}

18
test.js
View File

@ -10,6 +10,7 @@
var colors = require('colors')
var object = require('ig-object')
var test = require('ig-test')
var argv = require('./argv')
@ -22,21 +23,21 @@ var lang = module.lang = require('./examples/lang').parser
//---------------------------------------------------------------------
var setups = {
test.Setups({
bare: require('./examples/bare').parser,
options: require('./examples/options').parser,
lang: require('./examples/lang').parser,
}
})
var modifiers = {
}
test.Modifiers({
})
var tests = {
}
test.Tests({
})
var cases = {
}
test.Cases({
})
@ -227,6 +228,7 @@ typeof(__filename) != 'undefined'
&& __filename == (require.main || {}).filename
&& console.log(p())
//&& console.log(lang())
//&& test.run()