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

Function usage

src/fold.c:69–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67};
68
69void
70usage (int status)
71{
72 if (status != EXIT_SUCCESS)
73 emit_try_help ();
74 else
75 {
76 printf (_("\
77Usage: %s [OPTION]... [FILE]...\n\
78"),
79 program_name);
80 fputs (_("\
81Wrap input lines in each FILE, writing to standard output.\n\
82"), stdout);
83
84 emit_stdin_note ();
85 emit_mandatory_arg_note ();
86
87 oputs (_("\
88 -b, --bytes\n\
89 count bytes rather than columns\n\
90"));
91 oputs (_("\
92 -c, --characters\n\
93 count characters rather than columns\n\
94"));
95 oputs (_("\
96 -s, --spaces\n\
97 break after blanks, or in words greater than WIDTH\n\
98"));
99 oputs (_("\
100 -w, --width=WIDTH\n\
101 use WIDTH columns instead of 80\n\
102"));
103 oputs (HELP_OPTION_DESCRIPTION);
104 oputs (VERSION_OPTION_DESCRIPTION);
105 emit_ancillary_info (PROGRAM_NAME);
106 }
107 exit (status);
108}
109
110/* Assuming the current column is COLUMN, return the column that
111 printing C will move the cursor to.

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