comparison Applications/ApplicationToolbox.cpp @ 8:62adabb8c122

Provide "--version" in command-line tools
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 Oct 2016 16:53:54 +0200
parents bc3ca410b765
children 8e1dfd531335
comparison
equal deleted inserted replaced
7:bc3ca410b765 8:62adabb8c122
174 { 174 {
175 LOG(ERROR) << "Bad color specification: " << color; 175 LOG(ERROR) << "Bad color specification: " << color;
176 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 176 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
177 } 177 }
178 } 178 }
179
180
181 void PrintVersion(const char* path)
182 {
183 std::cout
184 << path << " " << ORTHANC_WSI_VERSION << std::endl
185 << "Copyright (C) 2012-2016 Sebastien Jodogne, "
186 << "Medical Physics Department, University Hospital of Liege (Belgium)" << std::endl
187 << "Licensing AGPL: GNU AGPL version 3 or later <http://gnu.org/licenses/gpl.html>." << std::endl
188 << "This is free software: you are free to change and redistribute it." << std::endl
189 << "There is NO WARRANTY, to the extent permitted by law." << std::endl
190 << std::endl
191 << "Written by Sebastien Jodogne <s.jodogne@gmail.com>" << std::endl;
192 }
179 } 193 }
180 } 194 }