Skip to content
Snippets Groups Projects
Commit 233846b5 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[T] XdmfDiff; Correct copyright/version message.

parent 5d0c291d
No related branches found
No related tags found
No related merge requests found
add_executable(xdmfdiff xdmfdiff.cpp) add_executable(xdmfdiff xdmfdiff.cpp)
target_link_libraries(xdmfdiff OgsXdmf std::filesystem tclap) target_link_libraries(xdmfdiff OgsXdmf GitInfoLib std::filesystem tclap)
install(PROGRAMS $<TARGET_FILE:xdmfdiff> DESTINATION bin) install(PROGRAMS $<TARGET_FILE:xdmfdiff> DESTINATION bin)
/** /**
* \file * \file
* \copyright * \copyright
* Copyright (c) 2015-2021, OpenGeoSys Community (http://www.opengeosys.org) * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License. * Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or * See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license * http://www.opengeosys.org/project/license
*/ */
#include <tclap/CmdLine.h> #include <tclap/CmdLine.h>
#include <Xdmf.hpp> #include <Xdmf.hpp>
...@@ -24,6 +23,8 @@ ...@@ -24,6 +23,8 @@
#include <memory> #include <memory>
#include <sstream> #include <sstream>
#include <tuple> #include <tuple>
#include "InfoLib/GitInfo.h"
// See https://stackoverflow.com/a/8513803/2706707 // See https://stackoverflow.com/a/8513803/2706707
template <typename... Containers> template <typename... Containers>
auto zip(Containers&&... containers) -> boost::iterator_range< auto zip(Containers&&... containers) -> boost::iterator_range<
...@@ -54,14 +55,13 @@ struct Args ...@@ -54,14 +55,13 @@ struct Args
auto parseCommandLine(int argc, char* argv[]) -> Args auto parseCommandLine(int argc, char* argv[]) -> Args
{ {
TCLAP::CmdLine cmd( TCLAP::CmdLine cmd(
"XdmfDiff software.\n" "XdmfDiff software.\n\n"
"Copyright (c) 2015-2020, OpenGeoSys Community " "OpenGeoSys-6 software, version " +
"(http://www.opengeosys.org) " GitInfoLib::GitInfo::ogs_version +
"Distributed under a Modified BSD License. " ".\n"
"See accompanying file LICENSE.txt or " "Copyright (c) 2012-2021, OpenGeoSys Community "
"http://www.opengeosys.org/project/license", "(http://www.opengeosys.org)",
' ', ' ', GitInfoLib::GitInfo::ogs_version);
"0.1");
TCLAP::UnlabeledValueArg<std::string> xdmf_input_a_arg( TCLAP::UnlabeledValueArg<std::string> xdmf_input_a_arg(
"input-file-a", "Path to the Xdmf input file.", true, "", "XDMF FILE"); "input-file-a", "Path to the Xdmf input file.", true, "", "XDMF FILE");
...@@ -299,4 +299,4 @@ int main(int argc, char* argv[]) ...@@ -299,4 +299,4 @@ int main(int argc, char* argv[])
} }
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment