mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-23 05:19:21 +02:00
sch2fig/main.c (usage): explain options, some arguments; better formatting
This commit is contained in:
parent
77ac119136
commit
de0917e674
@ -42,17 +42,37 @@ static struct gfx_ops const *ops_list[] = {
|
|||||||
void usage(const char *name)
|
void usage(const char *name)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"usage: %s [-r] [-v ...] [file.lib ...] file.sch -- driver_spec\n"
|
"usage: %s [-r] [-v ...] [[rev:]file.lib ...] [rev:]file.sch\n"
|
||||||
" %s [-v ...] -C file\n\n"
|
" %*s-- driver_spec\n"
|
||||||
" FIG driver spec:\n"
|
" %s [-v ...] -C [rev:]file\n"
|
||||||
" fig [-t template.fig] [var=value ...]\n"
|
"\n"
|
||||||
" Cairo PNG driver spec:\n"
|
" rev git revision\n"
|
||||||
" png [-o output.png] [-s scale]\n"
|
" -r recurse into sub-sheets\n"
|
||||||
" Cairo PDF driver spec:\n"
|
" -v increase verbosity of diagnostic output\n"
|
||||||
" pdf [-o output.pdf] [-s scale]\n"
|
" -C 'cat' the file to standard output\n"
|
||||||
" Diff driver spec:\n"
|
"\n"
|
||||||
" diff [-o output.pdf] [-s scale] [file.lib ...] file.sch\n"
|
"FIG driver spec:\n"
|
||||||
, name, name);
|
" 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);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user