From 4e595b34c1cd3a8bb33e626becd28829ed28649b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Fri, 12 Jun 2015 11:42:29 -0300 Subject: [PATCH] (retroarch.c) Add print_version() --- retroarch.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/retroarch.c b/retroarch.c index 9f303b595d..7b8c1e8201 100644 --- a/retroarch.c +++ b/retroarch.c @@ -110,12 +110,7 @@ static void print_features(void) } #undef _PSUPP -/** - * print_help: - * - * Prints help message explaining RetroArch's commandline switches. - **/ -static void print_help(const char *arg0) +static void print_version(void) { char str[PATH_MAX_LENGTH] = {0}; @@ -129,13 +124,26 @@ static void print_help(const char *arg0) fprintf(stdout, "%s", str); fprintf(stdout, "Built: %s\n", __DATE__); puts("==================================================================="); +} + +/** + * print_help: + * + * Prints help message explaining RetroArch's commandline switches. + **/ +static void print_help(const char *arg0) +{ + print_version(); printf("Usage: %s [OPTIONS]... [FILE]\n", arg0); puts(" -h, --help Show this help message."); + puts(" -v, --verbose Verbose logging."); + puts(" --log-file=FILE Log " RETRO_FRONTEND " messages to FILE."); + puts(" --version Show " RETRO_FRONTEND " version."); + puts(" --features Prints available features compiled into " RETRO_FRONTEND "."); puts(" --menu Do not require content or libretro core to be loaded,\n" " starts directly in menu. If no arguments are passed to\n" " " RETRO_FRONTEND ", it is equivalent to using --menu as only argument."); - puts(" --features Prints available features compiled into " RETRO_FRONTEND "."); puts(" -s, --save=FILE Path for save file (*.srm)."); puts(" -f, --fullscreen Start " RETRO_FRONTEND " in fullscreen regardless of config settings."); puts(" -S, --savestate=FILE Path to use for save states. If not selected, *.state will be assumed."); @@ -186,7 +194,6 @@ static void print_help(const char *arg0) puts(" --recordconfig Path to settings used during recording."); puts(" --size=WIDTHxHEIGHT\n" " Overrides output video size when recording."); - puts(" -v, --verbose Verbose logging."); puts(" -U, --ups=FILE Specifies path for UPS patch that will be applied to content."); puts(" --bps=FILE Specifies path for BPS patch that will be applied to content."); puts(" --ips=FILE Specifies path for IPS patch that will be applied to content.");