String returned from act function printed to the stderr instead of stdout #42

Open
cody- opened this Issue May 22, 2014 · 1 comment

Projects

None yet

2 participants

cody- commented May 22, 2014

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 Aug 31, 2016

+1

@aliosv aliosv added a commit to aliosv/coa that referenced this issue Sep 1, 2016
@aliosv aliosv #42 bbb35bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment