Usage Message and Exit
Display a summary of options and usage parameters for the user.
Notes
Most of the text generated by the UsageMsg concern is
actually supplied by the numerous extensions to it.
- Output usage message
-
Code insertion
- Segment Source
- 208: if (status != 0)
209: fprintf (stderr, _("Try `%s --help' for more information.\n"),
210: program_name);
211: else
212: {
213: printf (_("\
214: Usage: %s [OPTION]... [FILE]...\n\
215: "),
216: program_name);
217: printf (_("\
218: Write sorted concatenation of all FILE(s) to standard output.\n\
219: \n\
220: +POS1 [-POS2] start a key at POS1, end it before POS2\n\
221: -b ignore leading blanks in sort fields or keys\n\
222: -c check if given files already sorted, do not sort\n\
223: -d consider only [a-zA-Z0-9 ] characters in keys\n\
224: -f fold lower case to upper case characters in keys\n\
225: -g compare according to general numerical value, imply -b\n\
226: -i consider only [\\040-\\0176] characters in keys\n\
227: -k POS1[,POS2] same as +POS1 [-POS2], but all positions counted from 1\n\
228: -m merge already sorted files, do not sort\n\
229: -M compare (unknown) < `JAN' < ... < `DEC', imply -b\n\
230: -n compare according to string numerical value, imply -b\n\
231: -o FILE write result on FILE instead of standard output\n\
232: -r reverse the result of comparisons\n\
233: -s stabilize sort by disabling last resort comparison\n\
234: -t SEP use SEParator instead of non- to whitespace transition\n\
235: -T DIRECT use DIRECT for temporary files, not $TMPDIR or %s\n\
236: -u with -c, check for strict ordering;\n\
237: with -m, only output the first of an equal sequence\n\
238: -z end lines with 0 byte, not newline, for find -print0\n\
239: --help display this help and exit\n\
240: --version output version information and exit\n\
241: \n\
242: POS is F[.C][OPTS], where F is the field number and C the character\n\
243: position in the field, both counted from zero. OPTS is made up of one\n\
244: or more of Mbdfinr, this effectively disable global -Mbdfinr settings\n\
245: for that key. If no key given, use the entire line as key. With no\n\
246: FILE, or when FILE is -, read standard input.\n\
247: ")
248: , DEFAULT_TMPDIR);
249: puts (_("\nReport bugs to textutils-bugs@gnu.ai.mit.edu"));
250: }