mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-27 01:15:00 +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"
|
||||||
|
"\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"
|
" fig [-t template.fig] [var=value ...]\n"
|
||||||
" Cairo PNG driver spec:\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"
|
" png [-o output.png] [-s scale]\n"
|
||||||
" Cairo PDF driver spec:\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"
|
" pdf [-o output.pdf] [-s scale]\n"
|
||||||
" Diff driver spec:\n"
|
"\n"
|
||||||
|
" see PNG\n"
|
||||||
|
"\n"
|
||||||
|
"Diff driver spec:\n"
|
||||||
" diff [-o output.pdf] [-s scale] [file.lib ...] file.sch\n"
|
" diff [-o output.pdf] [-s scale] [file.lib ...] file.sch\n"
|
||||||
, name, name);
|
"\n"
|
||||||
|
" see PNG\n"
|
||||||
|
, name, (int) strlen(name) + 1, "", name);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user