From 689fa55d1529ad88449ca464e9107c4dcc54d1cb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 3 May 2021 11:17:34 +0200 Subject: C++11 tidying. --- src/lib/create_cli.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/lib/create_cli.cc') diff --git a/src/lib/create_cli.cc b/src/lib/create_cli.cc index 819f17f6e..2258f8a2e 100644 --- a/src/lib/create_cli.cc +++ b/src/lib/create_cli.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2019 Carl Hetherington + Copyright (C) 2019-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,20 +18,22 @@ */ + +#include "compose.hpp" +#include "config.h" #include "create_cli.h" #include "dcp_content_type.h" #include "ratio.h" -#include "config.h" -#include "compose.hpp" #include +#include #include -#include using std::string; using std::cout; using boost::optional; + string CreateCLI::_help = "\nSyntax: %1 [OPTION] [OPTION] [ ...]\n" " -v, --version show DCP-o-matic version\n" @@ -54,6 +56,7 @@ string CreateCLI::_help = " --left-eye next piece of content is for the left eye\n" " --right-eye next piece of content is for the right eye\n"; + template void argument_option (int& n, int argc, char* argv[], string short_name, string long_name, bool* claimed, optional* error, T* out) @@ -72,6 +75,7 @@ argument_option (int& n, int argc, char* argv[], string short_name, string long_ *claimed = true; } + CreateCLI::CreateCLI (int argc, char* argv[]) : version (false) , encrypt (false) -- cgit v1.2.3