1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 21:01:31 +02:00

sch2fig/main.c (usage): explain options, some arguments; better formatting

This commit is contained in:
Werner Almesberger 2016-08-02 09:27:05 -03:00
parent 77ac119136
commit de0917e674

View File

@ -42,17 +42,37 @@ static struct gfx_ops const *ops_list[] = {
void usage(const char *name)
{
fprintf(stderr,
"usage: %s [-r] [-v ...] [file.lib ...] file.sch -- driver_spec\n"
" %s [-v ...] -C file\n\n"
" FIG driver spec:\n"
" fig [-t template.fig] [var=value ...]\n"
" Cairo PNG driver spec:\n"
" png [-o output.png] [-s scale]\n"
" Cairo PDF driver spec:\n"
" pdf [-o output.pdf] [-s scale]\n"
" Diff driver spec:\n"
" diff [-o output.pdf] [-s scale] [file.lib ...] file.sch\n"
, name, name);
"usage: %s [-r] [-v ...] [[rev:]file.lib ...] [rev:]file.sch\n"
" %*s-- driver_spec\n"
" %s [-v ...] -C [rev:]file\n"
"\n"
" rev git revision\n"
" -r recurse into sub-sheets\n"
" -v increase verbosity of diagnostic output\n"
" -C 'cat' the file to standard output\n"
"\n"
"FIG driver spec:\n"
" fig [-t template.fig] [var=value ...]\n"
"\n"
" var=value substitute \"<var>\" with \"value\" in template\n"
" -t template.fig merge this file with generated output\n"
"\n"
"Cairo PNG driver spec:\n"
" png [-o output.png] [-s scale]\n"
"\n"
" -o output.png generate PNG output and write to specified file\n"
" -s scale scale by indicated factor (default: 1.0)\n"
"\n"
"Cairo PDF driver spec:\n"
" pdf [-o output.pdf] [-s scale]\n"
"\n"
" see PNG\n"
"\n"
"Diff driver spec:\n"
" diff [-o output.pdf] [-s scale] [file.lib ...] file.sch\n"
"\n"
" see PNG\n"
, name, (int) strlen(name) + 1, "", name);
exit(1);
}