Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatic execution prints to stdout #724

Closed
joscha opened this issue Mar 24, 2017 · 1 comment
Closed

Programmatic execution prints to stdout #724

joscha opened this issue Mar 24, 2017 · 1 comment

Comments

@joscha
Copy link

joscha commented Mar 24, 2017

protobuf.js version: 6.7.0 (current HEAD on master)

When running the sample from the README:

var pbjs = require("protobufjs/cli/pbjs");

pbjs.main([ "--target", "json-module", "path/to/myproto.proto" ], function(err, output) {
    if (err)
        throw err;
    // do something with output
});

then output is undefined and the result gets printed on stdout instead.

@joscha
Copy link
Author

joscha commented Mar 24, 2017

Fixed in 16adff0

@joscha joscha closed this as completed Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant