From f4716ac8a85d0e8e31eeb913911ace7764f2f2ad Mon Sep 17 00:00:00 2001 From: Pieter Hulshoff Date: Fri, 2 Sep 2016 09:27:53 +0200 Subject: [PATCH] Added -v and --version as alternative command line options for -version. --- RetroFE/Source/Main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RetroFE/Source/Main.cpp b/RetroFE/Source/Main.cpp index c7c1c47..dfe8b1b 100644 --- a/RetroFE/Source/Main.cpp +++ b/RetroFE/Source/Main.cpp @@ -42,7 +42,9 @@ int main(int argc, char **argv) { // Do nothing; we handle that later } - else if(param == "-version") + else if(param == "-version" || + param == "--version" || + param == "-v") { std::cout << "RetroFE version " << Version::getString( ) << std::endl; return 0; @@ -51,7 +53,7 @@ int main(int argc, char **argv) { std::cout << "Usage:" << std::endl; std::cout << program << " Run RetroFE" << std::endl; - std::cout << program << " -version Print the version of RetroFE." << std::endl; + std::cout << program << " --version Print the version of RetroFE." << std::endl; std::cout << program << " -createcollection Create a collection directory structure." << std::endl; return 0; }