-{
- gdcm::File *f1;
-
- gdcm::Debug::DebugOn();
- std::cout << "------------------------------------------------" << std::endl;
- std::cout << "Anonymize a gdcm-readable DICOMDIR " << std::endl;
- std::cout << "even some Objects are not yet taken into account" << std::endl;
- std::cout << "Warning : the DICOMDIR is overwritten" << std::endl;
- std::cout << " : to preserve file integrity "
- << " think unto using a copy .. " << std::endl;
+{
+
+ START_USAGE(usage)
+ " \n AnonymizeDicomDir :\n",
+ " Anonymize a gdcm-readable DICOMDIR ",
+ " even when some 'Objects' are not yet taken into account",
+ " Warning : the DICOMDIR is overwritten",
+ " usage: AnonymizeDicomDir filein=dicomDirName [debug] ",
+ " debug : user wants to run the program in 'debug mode' ",
+ FINISH_USAGE
+
+ // ----- Initialize Arguments Manager ------
+ gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+
+ if (argc == 1 || am->ArgMgrDefined("usage"))
+ {
+ am->ArgMgrUsage(usage); // Display 'usage'
+ delete am;
+ return 0;
+ }