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".
|
||||
(Suggested by Ben Armstrong)
|
||||
|
||||
* Reorganized usage display
|
||||
(Suggested by Ben Armstrong)
|
||||
|
||||
|
||||
2003.Aug.18 (0.9.12)
|
||||
* 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: */
|
||||
|
||||
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,
|
||||
"\n"
|
||||
"Usage: %s {--usage | --help | --version | --copying}\n"
|
||||
" %s [--fullscreen] [--800x600] [--nosound] [--noquit] [--noprint]\n"
|
||||
" [--simpleshapes] [--uppercase] [--grab] [--nowheelmouse]\n"
|
||||
" [--nofancycursors] [--keyboard] [--nooutlines] [--nostamps]\n"
|
||||
" [--savedir DIRECTORY] [--saveover] [--saveovernew]\n"
|
||||
" %s [--windowed] [--640x480] [--sound] [--quit] [--print]\n"
|
||||
" [--complexshapes] [--mixedcase] [--dontgrab] [--wheelmouse]\n"
|
||||
" [--fancycursors] [--mouse] [--outlines] [--stamps]\n"
|
||||
" [--saveoverask]\n"
|
||||
"\n"
|
||||
" %s [--windowed | --fullscreen] [--640x480 | --800x600]\n"
|
||||
" %s [--sound | --nosound] [--quit | --noquit]\n"
|
||||
" %s [--print | --noprint] [--complexshapes | --simpleshapes]\n"
|
||||
" %s [--mixedcase | --uppercase] [--fancycursors | --nofancycursors]\n"
|
||||
" %s [--mouse | --keyboard] [--dontgrab | --grab]\n"
|
||||
" %s [--outlines | --nooutlines] [--stamps | --nostamps]\n"
|
||||
" %s [--wheelmouse | --nowheelmouse]\n"
|
||||
" %s [--saveoverask | --saveover | --saveovernew]\n"
|
||||
" %s [--savedir DIRECTORY]\n"
|
||||
#ifdef WIN32
|
||||
" %s [--printcfg | --noprintcfg]\n"
|
||||
#endif
|
||||
" %s [--printdelay=SECONDS]\n"
|
||||
" %s [--lang LANGUAGE | --locale LOCALE]\n"
|
||||
" %s [--nosysconfig]\n"
|
||||
/* " %s [--record FILE | --playback FILE]\n" */
|
||||
/* " %s [--record FILE | --playback FILE]\n" */
|
||||
"\n",
|
||||
prg, prg, prg,
|
||||
#ifdef WIN32
|
||||
prg,
|
||||
#endif
|
||||
prg, prg, prg /* , prg */ );
|
||||
prg, prg,
|
||||
blank, blank, blank,
|
||||
blank, blank, blank,
|
||||
blank, blank, blank,
|
||||
blank, blank);
|
||||
|
||||
free(blank);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue