mirror of
https://github.com/flynx/argv.js.git
synced 2025-10-28 18:30:07 +00:00
preparing for testing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
79f6fa6e93
commit
2641f377d0
3
argv.js
3
argv.js
@ -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)
|
||||
|
||||
@ -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
18
test.js
@ -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()
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user