commandlineparser/commandline

Built in Help and Version output goes to stderr not stdout.

Aperta

#399 aperta il 23 gen 2019

 (13 commenti) (0 reazioni) (0 assegnatari)C# (461 fork)batch import
good first issue

Metriche repository

Star
 (4280 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

The built in --help and --version outputs are printed to stderr instead of stdout, you have to redirect them to use the commands properly.

test --version returns the version number, but on stderr not stdout.

e.g. test --version 2>nul returns no output. test --version 2>&1 prints the version to stdout as expected.

Guida contributor