7 #include "PlusConfigure.h" 8 #include "vtksys/CommandLineArguments.hxx" 11 int main(
int argc,
char **argv)
13 bool printHelp(
false);
14 bool printShortVersionInfo=
false;
16 vtksys::CommandLineArguments args;
17 args.Initialize( argc, argv );
18 args.AddArgument(
"--help", vtksys::CommandLineArguments::NO_ARGUMENT, &printHelp,
"Print this help.");
19 args.AddArgument(
"--short", vtksys::CommandLineArguments::NO_ARGUMENT, &printShortVersionInfo,
"Print short version information, without list of supported devices (by default print detailed information)" );
23 std::cerr <<
"Problem parsing arguments." << std::endl;
24 std::cout <<
"Help: " << args.GetHelp() << std::endl;
30 std::cout << args.GetHelp() << std::endl;
37 if (!printShortVersionInfo)
39 vtkSmartPointer<vtkPlusDeviceFactory> deviceFactory = vtkSmartPointer<vtkPlusDeviceFactory>::New();
40 std::ostringstream supportedDevices;
41 deviceFactory->PrintAvailableDevices(supportedDevices, vtkIndent());
42 std::cout << supportedDevices.str();
int main(int argc, char **argv)
static vtkIGSIOLogger * Instance()