Reorganized usage display.
This commit is contained in:
parent
939b055f21
commit
16b3be9226
2 changed files with 31 additions and 14 deletions
|
|
@ -18,6 +18,9 @@ http://www.newbreedsoftware.com/tuxpaint/
|
||||||
"--lang" called incorrectly, or as "--lang list" or "--lang help".
|
"--lang" called incorrectly, or as "--lang list" or "--lang help".
|
||||||
(Suggested by Ben Armstrong)
|
(Suggested by Ben Armstrong)
|
||||||
|
|
||||||
|
* Reorganized usage display
|
||||||
|
(Suggested by Ben Armstrong)
|
||||||
|
|
||||||
|
|
||||||
2003.Aug.18 (0.9.12)
|
2003.Aug.18 (0.9.12)
|
||||||
* Replaced "efont-serif" fonts with those from the 'ttf-freefont' package,
|
* Replaced "efont-serif" fonts with those from the 'ttf-freefont' package,
|
||||||
|
|
|
||||||
|
|
@ -3351,34 +3351,48 @@ void show_version(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* FIXME: Re-order the usage in a sane way! */
|
||||||
|
|
||||||
/* Show usage display: */
|
/* Show usage display: */
|
||||||
|
|
||||||
void show_usage(FILE * f, char * prg)
|
void show_usage(FILE * f, char * prg)
|
||||||
{
|
{
|
||||||
|
char * blank;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
blank = strdup(prg);
|
||||||
|
|
||||||
|
for (i = 0; i < strlen(blank); i++)
|
||||||
|
blank[i] = ' ';
|
||||||
|
|
||||||
fprintf(f,
|
fprintf(f,
|
||||||
"\n"
|
"\n"
|
||||||
"Usage: %s {--usage | --help | --version | --copying}\n"
|
"Usage: %s {--usage | --help | --version | --copying}\n"
|
||||||
" %s [--fullscreen] [--800x600] [--nosound] [--noquit] [--noprint]\n"
|
"\n"
|
||||||
" [--simpleshapes] [--uppercase] [--grab] [--nowheelmouse]\n"
|
" %s [--windowed | --fullscreen] [--640x480 | --800x600]\n"
|
||||||
" [--nofancycursors] [--keyboard] [--nooutlines] [--nostamps]\n"
|
" %s [--sound | --nosound] [--quit | --noquit]\n"
|
||||||
" [--savedir DIRECTORY] [--saveover] [--saveovernew]\n"
|
" %s [--print | --noprint] [--complexshapes | --simpleshapes]\n"
|
||||||
" %s [--windowed] [--640x480] [--sound] [--quit] [--print]\n"
|
" %s [--mixedcase | --uppercase] [--fancycursors | --nofancycursors]\n"
|
||||||
" [--complexshapes] [--mixedcase] [--dontgrab] [--wheelmouse]\n"
|
" %s [--mouse | --keyboard] [--dontgrab | --grab]\n"
|
||||||
" [--fancycursors] [--mouse] [--outlines] [--stamps]\n"
|
" %s [--outlines | --nooutlines] [--stamps | --nostamps]\n"
|
||||||
" [--saveoverask]\n"
|
" %s [--wheelmouse | --nowheelmouse]\n"
|
||||||
|
" %s [--saveoverask | --saveover | --saveovernew]\n"
|
||||||
|
" %s [--savedir DIRECTORY]\n"
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
" %s [--printcfg | --noprintcfg]\n"
|
" %s [--printcfg | --noprintcfg]\n"
|
||||||
#endif
|
#endif
|
||||||
" %s [--printdelay=SECONDS]\n"
|
" %s [--printdelay=SECONDS]\n"
|
||||||
" %s [--lang LANGUAGE | --locale LOCALE]\n"
|
" %s [--lang LANGUAGE | --locale LOCALE]\n"
|
||||||
" %s [--nosysconfig]\n"
|
" %s [--nosysconfig]\n"
|
||||||
/* " %s [--record FILE | --playback FILE]\n" */
|
/* " %s [--record FILE | --playback FILE]\n" */
|
||||||
"\n",
|
"\n",
|
||||||
prg, prg, prg,
|
prg, prg,
|
||||||
#ifdef WIN32
|
blank, blank, blank,
|
||||||
prg,
|
blank, blank, blank,
|
||||||
#endif
|
blank, blank, blank,
|
||||||
prg, prg, prg /* , prg */ );
|
blank, blank);
|
||||||
|
|
||||||
|
free(blank);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue