mlr tee online help

This commit is contained in:
John Kerl 2016-07-29 21:48:40 -04:00
parent dcb0207207
commit 6b7ca67f68
3 changed files with 17 additions and 8 deletions

View file

@ -62,8 +62,14 @@ static mapper_t* mapper_tee_parse_cli(int* pargi, int argc, char** argv) {
}
static void mapper_tee_usage(FILE* o, char* argv0, char* verb) {
fprintf(o, "Usage: %s %s [options]\n", argv0, verb);
fprintf(o, "xxx write this up please.\n");
fprintf(o, "Usage: %s %s [options] {filename}\n", argv0, verb);
fprintf(o, "Passes through input records (like %s cat) but also writes to specified output\n",
MLR_GLOBALS.bargv0);
fprintf(o, "file, using output-format flags from the command line (e.g. --ocsv). See also\n");
fprintf(o, "the \"tee\" keyword within %s put, which allows data-dependent filenames.\n",
MLR_GLOBALS.bargv0);
fprintf(o, "Options:\n");
fprintf(o, "--no-fflush: don't call fflush() after every record.\n");
}
// ----------------------------------------------------------------

View file

@ -21,9 +21,8 @@ TOP OF LIST:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COMMON:
! AST: FILE_WRITE --> stdout/stderr x all
* put/tee --oxxx flags
* put/tee --no-flush flags
* put/tee --oxxx flags
* mlr -k needs >/>> examples incl. stdout/stderr/file. also some subset at mlr put -h.
* lrec_reader/writer take sub-bagged cliopts pstructs

View file

@ -2,12 +2,12 @@
.\" Title: mlr
.\" Author: [see the "AUTHOR" section]
.\" Generator: ./mkman.rb
.\" Date: 2016-07-28
.\" Date: 2016-07-30
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
.TH "MILLER" "1" "2016-07-28" "\ \&" "\ \&"
.TH "MILLER" "1" "2016-07-30" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Portability definitions
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -1254,8 +1254,12 @@ Passes through the last n records, optionally by category.
.RS 0
.\}
.nf
Usage: mlr tee [options]
xxx write this up please.
Usage: mlr tee [options] {filename}
Passes through input records (like mlr cat) but also writes to specified output
file, using output-format flags from the command line (e.g. --ocsv). See also
the "tee" keyword within mlr put, which allows data-dependent filenames.
Options:
--no-fflush: don't call fflush() after every record.
.fi
.if n \{\
.RE