X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Example%2FAnonymize.cxx;h=69a7d8a14f9af2943a7c2179f0306b185847f458;hb=ac2e8ecc8319069451f1fe5a4413915d56f9cbdc;hp=defdaf007539dfb5eb97f56c768fa2acf14b6ef2;hpb=c9568a4776c41f7f1cc1eca7c31e24adbe27ac67;p=gdcm.git diff --git a/Example/Anonymize.cxx b/Example/Anonymize.cxx index defdaf00..69a7d8a1 100644 --- a/Example/Anonymize.cxx +++ b/Example/Anonymize.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: Anonymize.cxx,v $ Language: C++ - Date: $Date: 2005/07/07 17:31:53 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/07/21 04:55:50 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -27,18 +27,18 @@ int main(int argc, char *argv[]) { START_USAGE(usage) - " \n Anonymize :\n", - " Anonymize a full gdcm-readable Dicom image", - " Warning : probably segfaults if pixels are not gdcm readable.", - " Use exAnonymizeNoLoad instead.", - " usage: Anonymize filein=inputFileName fileout=anonymizedFileName[debug] ", - " debug : user wants to run the program in 'debug mode' ", + " \n Anonymize :\n ", + " Anonymize a full gdcm-readable Dicom image ", + " Warning : probably segfaults if pixels are not gdcm readable. ", + " Use exAnonymizeNoLoad instead. ", + " usage: Anonymize filein=inputFileName fileout=anonymizedFileName[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 (am->ArgMgrDefined("usage")) + if (argc == 1 || am->ArgMgrDefined("usage")) { am->ArgMgrUsage(usage); // Display 'usage' delete am;