diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-02-17 13:10:36 +0000 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-02-17 19:50:35 -0800 |
commit | ff3c5fd8f6370265156d308b44c3b039ead12fd4 (patch) | |
tree | 7621d45783cf77b9ef3aeaf49685abf8e85997e1 /libc/src/unix/notbsd/linux/other/b64/x86_64.rs | |
parent | 41f352bff4d7cb221d009b1bfc7f0664bea9b348 (diff) | |
download | nitrocli-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/src/unix/notbsd/linux/other/b64/x86_64.rs')
0 files changed, 0 insertions, 0 deletions