Resurrecting informational options (--help, --usage, --version, --verbose-version)
This commit is contained in:
parent
2715f918e9
commit
5b058ae71f
2 changed files with 10 additions and 10 deletions
|
|
@ -38,28 +38,28 @@ struct cfg
|
||||||
|
|
||||||
static void imm_version(void)
|
static void imm_version(void)
|
||||||
{
|
{
|
||||||
// show_version(0);
|
show_version(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void imm_verbose_version(void)
|
static void imm_verbose_version(void)
|
||||||
{
|
{
|
||||||
// show_version(1);
|
show_version(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void imm_usage(void)
|
static void imm_usage(void)
|
||||||
{
|
{
|
||||||
// show_usage(0);
|
show_usage(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void imm_help(void)
|
static void imm_help(void)
|
||||||
{
|
{
|
||||||
// show_version(0);
|
show_version(0);
|
||||||
// show_usage(0);
|
show_usage(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void imm_copying(void)
|
static void imm_copying(void)
|
||||||
{
|
{
|
||||||
// show_version(0);
|
show_version(0);
|
||||||
printf("\n"
|
printf("\n"
|
||||||
"This program is free software; you can redistribute it\n"
|
"This program is free software; you can redistribute it\n"
|
||||||
"and/or modify it under the terms of the GNU General Public\n"
|
"and/or modify it under the terms of the GNU General Public\n"
|
||||||
|
|
|
||||||
|
|
@ -1617,7 +1617,7 @@ static void blit_brush(int x, int y, int direction);
|
||||||
static void stamp_draw(int x, int y);
|
static void stamp_draw(int x, int y);
|
||||||
static void rec_undo_buffer(void);
|
static void rec_undo_buffer(void);
|
||||||
|
|
||||||
static void show_usage(int exitcode);
|
void show_usage(int exitcode);
|
||||||
static char *progname;
|
static char *progname;
|
||||||
|
|
||||||
static SDL_Cursor *get_cursor(unsigned char *bits, unsigned char *mask_bits,
|
static SDL_Cursor *get_cursor(unsigned char *bits, unsigned char *mask_bits,
|
||||||
|
|
@ -6233,7 +6233,7 @@ static void rec_undo_buffer(void)
|
||||||
|
|
||||||
|
|
||||||
/* Show program version: */
|
/* Show program version: */
|
||||||
static void show_version(int details)
|
void show_version(int details)
|
||||||
{
|
{
|
||||||
printf("\nTux Paint\n");
|
printf("\nTux Paint\n");
|
||||||
printf(" Version " VER_VERSION " (" VER_DATE ")\n");
|
printf(" Version " VER_VERSION " (" VER_DATE ")\n");
|
||||||
|
|
@ -6363,7 +6363,7 @@ static void show_version(int details)
|
||||||
|
|
||||||
/* Show usage display: */
|
/* Show usage display: */
|
||||||
|
|
||||||
static void show_usage(int exitcode)
|
void show_usage(int exitcode)
|
||||||
{
|
{
|
||||||
FILE *f = exitcode ? stderr : stdout;
|
FILE *f = exitcode ? stderr : stdout;
|
||||||
char *blank;
|
char *blank;
|
||||||
|
|
@ -20969,7 +20969,7 @@ static void parse_argv_options(struct cfginfo *restrict tmpcfg, char *argv[])
|
||||||
{"-h", "help"},
|
{"-h", "help"},
|
||||||
{"-u", "usage"},
|
{"-u", "usage"},
|
||||||
{"-v", "version"},
|
{"-v", "version"},
|
||||||
{"-vv", "version-verbose"},
|
{"-vv", "verbose-version"},
|
||||||
{"-l", "lang"},
|
{"-l", "lang"},
|
||||||
{"-L", "locale"},
|
{"-L", "locale"},
|
||||||
{"-b", "startblank"},
|
{"-b", "startblank"},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue