mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 09:59:12 +00:00
6f84d938aa
When you used the `AddHelp` option to `Initialize`, it added a `--vtkm-help` option and `-h`, but not `--help`, which was weird. It also avoided adding `--vtkm-help` when `AddHelp` was not used, but did print out a usage statement under other circumstances. This changes the behavior to add `--vtkm-help`, `--help`, and `-h` when `AddHelp` is on and only `--vtkm-help` when it is off.
24 lines
765 B
C++
24 lines
765 B
C++
//============================================================================
|
|
// Copyright (c) Kitware, Inc.
|
|
// All rights reserved.
|
|
// See LICENSE.txt for details.
|
|
//
|
|
// This software is distributed WITHOUT ANY WARRANTY; without even
|
|
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
// PURPOSE. See the above copyright notice for more information.
|
|
//============================================================================
|
|
|
|
#include <vtkm/cont/Initialize.h>
|
|
#include <vtkm/source/Wavelet.h>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
vtkm::cont::Initialize(argc, argv, vtkm::cont::InitializeOptions::Strict);
|
|
vtkm::source::Wavelet source;
|
|
|
|
auto output = source.Execute();
|
|
output.PrintSummary(std::cout);
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|