[x265-commits] [x265] cli: add missing --version long option for -V, and -? sho...
Steve Borho
steve at borho.org
Fri Nov 8 04:28:26 CET 2013
details: http://hg.videolan.org/x265/rev/fd721a5ba063
branches:
changeset: 4944:fd721a5ba063
user: Steve Borho <steve at borho.org>
date: Thu Nov 07 21:27:45 2013 -0600
description:
cli: add missing --version long option for -V, and -? short option for --help
diffstat:
source/x265.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 08872c3c4735 -r fd721a5ba063 source/x265.cpp
--- a/source/x265.cpp Thu Nov 07 16:55:50 2013 -0600
+++ b/source/x265.cpp Thu Nov 07 21:27:45 2013 -0600
@@ -59,13 +59,14 @@
using namespace x265;
-static const char short_options[] = "o:p:f:F:r:i:b:s:t:q:m:hwV";
+static const char short_options[] = "o:p:f:F:r:i:b:s:t:q:m:hwV?";
static const struct option long_options[] =
{
#if HIGH_BIT_DEPTH
{ "depth", required_argument, NULL, 0 },
#endif
{ "help", no_argument, NULL, 'h' },
+ { "version", no_argument, NULL, 'V' },
{ "cpuid", required_argument, NULL, 0 },
{ "threads", required_argument, NULL, 0 },
{ "preset", required_argument, NULL, 'p' },
@@ -362,7 +363,7 @@ bool CLIOptions::parse(int argc, char **
if (c == 't')
tune = optarg;
else if (c == '?')
- return true;
+ showHelp(param);
}
if (x265_param_default_preset(param, preset, tune) < 0)
More information about the x265-commits
mailing list