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

Issue 339: allow using stderr instead of stdout #376

Merged
merged 2 commits into from
Aug 21, 2017

Conversation

yevmel
Copy link
Contributor

@yevmel yevmel commented Jun 25, 2017

at the moment instance of Console used by JCommander is initialized in JCommander.getConsole() and can not be changed. this situation results in issue #339

by making JCommander.console configurable developers can decide on what implementation of Console they are going to use.
using JCommander.Builder like this would resolve issue #339 :

JCommander.newBuilder()
    .args(args)
    .console(new DefaultConsole(System.err))
    .build();

@jeremysolarz
Copy link
Contributor

@cbeust can I merge this? Is #339 worth implementing?

@cbeust cbeust merged commit 0483213 into cbeust:master Aug 21, 2017
@cbeust
Copy link
Owner

cbeust commented Aug 21, 2017

Done, thanks!

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 this pull request may close these issues.

3 participants