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

console: write more things to stderr #208

Merged
merged 2 commits into from
Mar 11, 2021

Conversation

ErikSchierboom
Copy link
Member

Rationale:

  • When the user writes --help, the help message should go to stdout.
  • When the user writes some incorrect options/arguments, the help
    message should go to stderr.

tests/test_binary.nim Show resolved Hide resolved
tests/test_binary.nim Show resolved Hide resolved
tests/test_binary.nim Outdated Show resolved Hide resolved
ee7 added 2 commits March 11, 2021 09:30
We can argue that this message isn't really the "output" of the tests,
but is just a temporary communication to the user that the program
hasn't hung unexpectedly.

`unittest` writes everything to stdout, and so with this commit, the
user who compiles the tests and runs
```
$ ./tests/all_tests > /tmp/configlet_test_results.txt
```
will no longer see the message in that file - they see it in their
terminal instead.
Rationale:
- When the user writes `--help`, the help message should go to stdout.
- When the user writes some incorrect options/arguments, the help
  message should go to stderr.
@ee7 ee7 merged commit 60b2243 into exercism:output-to-stderr Mar 11, 2021
@ee7 ee7 deleted the output-to-stderr branch March 11, 2021 08:52
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.

2 participants