From 3028158873561d1b4482f7dd98ca26d5370bbf61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Tue, 21 Mar 2017 22:29:01 +0100 Subject: [PATCH] UICommon: Don't print --version option twice cpp-optparse already has the --version option built-in, so having our own version option results in --version being shown twice. --- Source/Core/UICommon/CommandLineParse.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/Core/UICommon/CommandLineParse.cpp b/Source/Core/UICommon/CommandLineParse.cpp index 0fe4a0c0d4..750ec245dd 100644 --- a/Source/Core/UICommon/CommandLineParse.cpp +++ b/Source/Core/UICommon/CommandLineParse.cpp @@ -66,8 +66,6 @@ std::unique_ptr CreateParser(ParserOptions options) auto parser = std::make_unique(); parser->usage("usage: %prog [options]... [FILE]...").version(scm_rev_str); - parser->add_option("--version").action("version").help("Print version and exit"); - parser->add_option("-u", "--user").action("store").help("User folder path"); parser->add_option("-m", "--movie").action("store").help("Play a movie file"); parser->add_option("-e", "--exec")