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

Function usage

src/ptx.c:1665–1740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1663`------------------------------------------------------*/
1664
1665void
1666usage (int status)
1667{
1668 if (status != EXIT_SUCCESS)
1669 emit_try_help ();
1670 else
1671 {
1672 printf (_("\
1673Usage: %s [OPTION]... [INPUT]... (without -G)\n\
1674 or: %s -G [OPTION]... [INPUT [OUTPUT]]\n"),
1675 program_name, program_name);
1676 fputs (_("\
1677Output a permuted index, including context, of the words in the input files.\n\
1678"), stdout);
1679
1680 emit_stdin_note ();
1681 emit_mandatory_arg_note ();
1682
1683 oputs (_("\
1684 -A, --auto-reference output automatically generated references\n\
1685"));
1686 oputs (_("\
1687 -G, --traditional behave more like System V 'ptx'\n\
1688"));
1689 oputs (_("\
1690 -F, --flag-truncation=STRING use STRING for flagging line truncations.\n\
1691 The default is '/'\n\
1692"));
1693 oputs (_("\
1694 -M, --macro-name=STRING macro name to use instead of 'xx'\n\
1695"));
1696 oputs (_("\
1697 -O, --format=roff generate output as roff directives\n\
1698"));
1699 oputs (_("\
1700 -R, --right-side-refs put references at right, not counted in -w\n\
1701"));
1702 oputs (_("\
1703 -S, --sentence-regexp=REGEXP for end of lines or end of sentences\n\
1704"));
1705 oputs (_("\
1706 -T, --format=tex generate output as TeX directives\n\
1707"));
1708 oputs (_("\
1709 -W, --word-regexp=REGEXP use REGEXP to match each keyword\n\
1710"));
1711 oputs (_("\
1712 -b, --break-file=FILE word break characters in this FILE\n\
1713"));
1714 oputs (_("\
1715 -f, --ignore-case fold lower case to upper case for sorting\n\
1716"));
1717 oputs (_("\
1718 -g, --gap-size=NUMBER gap size in columns between output fields\n\
1719"));
1720 oputs (_("\
1721 -i, --ignore-file=FILE read ignore word list from FILE\n\
1722"));

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