MCPcopy Create free account
hub / github.com/coreutils/coreutils / usage

Function usage

src/paste.c:446–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446void
447usage (int status)
448{
449 if (status != EXIT_SUCCESS)
450 emit_try_help ();
451 else
452 {
453 printf (_("\
454Usage: %s [OPTION]... [FILE]...\n\
455"),
456 program_name);
457 fputs (_("\
458Write lines consisting of the sequentially corresponding lines from\n\
459each FILE, separated by TABs, to standard output.\n\
460The newline of every line except the line from the last file\n\
461is replaced with a TAB.\n\
462"), stdout);
463
464 emit_stdin_note ();
465 emit_mandatory_arg_note ();
466
467 oputs (_("\
468 -d, --delimiters=LIST\n\
469 reuse characters from LIST instead of TABs;\n\
470 backslash escapes are supported\n\
471"));
472 oputs (_("\
473 -s, --serial\n\
474 paste one file at a time instead of in parallel; the newline of\n\
475 every line except the last line in each file is replaced with a TAB\
476\n\
477"));
478 oputs (_("\
479 -z, --zero-terminated\n\
480 line delimiter is NUL, not newline\n\
481"));
482 oputs (HELP_OPTION_DESCRIPTION);
483 oputs (VERSION_OPTION_DESCRIPTION);
484 /* FIXME: add a couple of examples. */
485 emit_ancillary_info (PROGRAM_NAME);
486 }
487 exit (status);
488}
489
490int
491main (int argc, char **argv)

Callers 1

mainFunction · 0.70

Calls 3

emit_stdin_noteFunction · 0.85
emit_mandatory_arg_noteFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected