(retroarch.c) Move print_version() ascii art to print_help()

This commit is contained in:
Higor Eurípedes 2015-06-12 12:43:38 -03:00
parent f9d6cab445
commit b08847abdd

View File

@ -134,7 +134,6 @@ static void print_version(void)
{ {
char str[PATH_MAX_LENGTH] = {0}; char str[PATH_MAX_LENGTH] = {0};
puts("===================================================================");
#ifdef HAVE_GIT_VERSION #ifdef HAVE_GIT_VERSION
printf(RETRO_FRONTEND ": Frontend for libretro -- v" PACKAGE_VERSION " -- %s --\n", rarch_git_version); printf(RETRO_FRONTEND ": Frontend for libretro -- v" PACKAGE_VERSION " -- %s --\n", rarch_git_version);
#else #else
@ -143,7 +142,6 @@ static void print_version(void)
rarch_info_get_capabilities(RARCH_CAPABILITIES_COMPILER, str, sizeof(str)); rarch_info_get_capabilities(RARCH_CAPABILITIES_COMPILER, str, sizeof(str));
fprintf(stdout, "%s", str); fprintf(stdout, "%s", str);
fprintf(stdout, "Built: %s\n", __DATE__); fprintf(stdout, "Built: %s\n", __DATE__);
puts("===================================================================");
} }
/** /**
@ -153,7 +151,10 @@ static void print_version(void)
**/ **/
static void print_help(const char *arg0) static void print_help(const char *arg0)
{ {
puts("===================================================================");
print_version(); print_version();
puts("===================================================================");
printf("Usage: %s [OPTIONS]... [FILE]\n", arg0); printf("Usage: %s [OPTIONS]... [FILE]\n", arg0);
puts(" -h, --help Show this help message."); puts(" -h, --help Show this help message.");