1 
2 #include "../config.h"
3 #include "yodlpost.h"
4 
usage()5 void usage()
6 {
7     char const *program = args_programName();
8 
9     fprintf(stderr, "%s%s%s%s%s%s%s",
10 "\n"
11 "Your Own Document Language: ",
12     program,
13 " " VERSION "\n"
14 "Usage: ",
15     program,
16 " [options] index yodlout [out]\n"
17 "Where:\n"
18 "    [options]   options. Select from\n"
19 "       -l linesize: maximum length of lines in the index file "
20                                                         "(default: 1000)\n"
21 "       -x ext: extension of the out-files if different from the extension\n"
22 "               of `out' itself. If omitted, and `out' has no extension,\n"
23 "               ypp (Yodl Post Processor) is used.\n"
24 "    index:      the name of the index file generated by Yodl\n"
25 "    yodlout:    the name of the output file generated by Yodl\n"
26 "    [out]:      optional name of the file generated by ",
27     program,
28 ",\n"
29 "                stdout if omitted.\n"
30 "\n"
31 "The special tags in the index file are processed.\n"
32 "Normally, this program is run from a yodl2xxx script\n"
33 "\n"
34 );
35 
36     exit(1);
37 }
38