aboutsummaryrefslogtreecommitdiff
path: root/libc/ci/emscripten-entry.sh
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-02-17 13:10:36 +0000
committerDaniel Mueller <deso@posteo.net>2019-02-17 19:50:35 -0800
commitff3c5fd8f6370265156d308b44c3b039ead12fd4 (patch)
tree7621d45783cf77b9ef3aeaf49685abf8e85997e1 /libc/ci/emscripten-entry.sh
parent41f352bff4d7cb221d009b1bfc7f0664bea9b348 (diff)
downloadnitrocli-ff3c5fd8f6370265156d308b44c3b039ead12fd4.tar.gz
nitrocli-ff3c5fd8f6370265156d308b44c3b039ead12fd4.tar.bz2
Use buffered writer in args::parse_arguments
To be able to decide whether to print the argparse output depending on the result of the argument parsing, this patch wraps stdout and stderr in a BufWriter before invoking argparse. Our BufWriter implementation only writes to the inner Write if the flush method is called. This allows us to decide whether the buffered data should be written or silently dropped.
Diffstat (limited to 'libc/ci/emscripten-entry.sh')
0 files changed, 0 insertions, 0 deletions