minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-08-09 18:06:54 +03:00
parent 803c24f8ba
commit fea7841f69
2 changed files with 3 additions and 2 deletions

View File

@ -616,7 +616,7 @@ object.Constructor('Parser', {
: src
return src[name] ?
['', typeof(src[name]) == 'function' ?
src[name]()
src[name].call(that)
: src[name]]
: [] }
var section = function(title, items){

View File

@ -133,7 +133,8 @@ argv.Parser({
'-test': argv.Parser({
env: 'TEST',
arg: 'TEST',
default: 'moo',
default: function(){
return this['-value'].default },
}).then(function(){
console.log('TEST', ...arguments) }),