String returned from act function printed to the stderr instead of stdout
Closed this issue · 2 comments
cody- commented
killme.js:
require('coa').Cmd()
.act(function(opts, args) {
return 'o.O';
})
.run();
$ node killme.js > killme.txt
o.O
$ cat ./killme.txt
# nothing
$ node killme.js 2> killme.txt
$ cat ./killme.txt
o.O
aliosv commented
+1
qfox commented
Fellows, ty for your report!
Atm in master branch:
$ node -p 'void require(".").Cmd().act(() => "o.O").run()' 2>/dev/null
undefined
o.O
Feels like it was fixed somehow and will be published as a patch soon.
Please reopen if I did something wrong.