Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 8378)
+++ trunk/ippTools/src/dettool.c	(revision 8379)
@@ -26,5 +26,5 @@
 static bool addnormstatMode(pxConfig *config);
 static bool normstatMode(pxConfig *config);
-static bool addnormalizedMode(pxConfig *config);
+static bool addnormalizedimfileMode(pxConfig *config);
 static bool toresidMode(pxConfig *config);
 static bool addresidimfileMode(pxConfig *config);
@@ -80,5 +80,5 @@
         MODECASE(DETTOOL_MODE_ADDNORMSTAT,      addnormstatMode);
         MODECASE(DETTOOL_MODE_NORMSTAT,         normstatMode);
-        MODECASE(DETTOOL_MODE_ADDNORMALIZED,    addnormalizedMode);
+        MODECASE(DETTOOL_MODE_ADDNORMALIZEDIMFILE,addnormalizedimfileMode);
         MODECASE(DETTOOL_MODE_NORMALIZED,       normalizedMode);
         MODECASE(DETTOOL_MODE_TORESID,          toresidMode);
@@ -2031,5 +2031,5 @@
 }
 
-static bool addnormalizedMode(pxConfig *config)
+static bool addnormalizedimfileMode(pxConfig *config)
 {
     PS_ASSERT_PTR_NON_NULL(config, false);
Index: trunk/ippTools/src/dettool.h
===================================================================
--- trunk/ippTools/src/dettool.h	(revision 8378)
+++ trunk/ippTools/src/dettool.h	(revision 8379)
@@ -23,5 +23,5 @@
     DETTOOL_MODE_ADDNORMSTAT,
     DETTOOL_MODE_NORMSTAT,
-    DETTOOL_MODE_ADDNORMALIZED,
+    DETTOOL_MODE_ADDNORMALIZEDIMFILE,
     DETTOOL_MODE_NORMALIZED,
     DETTOOL_MODE_TORESID,
Index: trunk/ippTools/src/dettoolConfig.c
===================================================================
--- trunk/ippTools/src/dettoolConfig.c	(revision 8378)
+++ trunk/ippTools/src/dettoolConfig.c	(revision 8379)
@@ -221,13 +221,13 @@
         "use the simple output format", false);
  
-    // -addnormalized
-    psMetadata *addnormalizedArgs = psMetadataAlloc();
-    psMetadataAddStr(addnormalizedArgs, PS_LIST_TAIL, "-det_id",  0,
-        "define detrend ID (required)", NULL);
-    psMetadataAddS32(addnormalizedArgs, PS_LIST_TAIL, "-iteration",  0,
+    // -addnormalizedimfile
+    psMetadata *addnormalizedimfileArgs = psMetadataAlloc();
+    psMetadataAddStr(addnormalizedimfileArgs, PS_LIST_TAIL, "-det_id",  0,
+        "define detrend ID (required)", NULL);
+    psMetadataAddS32(addnormalizedimfileArgs, PS_LIST_TAIL, "-iteration",  0,
         "define iteration number", 0);
-    psMetadataAddStr(addnormalizedArgs, PS_LIST_TAIL, "-class_id",  0,
+    psMetadataAddStr(addnormalizedimfileArgs, PS_LIST_TAIL, "-class_id",  0,
         "define class ID (required)", NULL);
-    psMetadataAddStr(addnormalizedArgs, PS_LIST_TAIL, "-uri",  0,
+    psMetadataAddStr(addnormalizedimfileArgs, PS_LIST_TAIL, "-uri",  0,
         "define URI (required)", NULL);
 
@@ -383,5 +383,5 @@
     PXTOOL_MODE("-stacked",         DETTOOL_MODE_STACKED,       stacArgs);
     PXTOOL_MODE("-stackedframe",    DETTOOL_MODE_STACKEDFRAME,  stacframeArgs);
-    PXTOOL_MODE("-addnormalized", DETTOOL_MODE_ADDNORMALIZED,addnormalizedArgs);
+    PXTOOL_MODE("-addnormalizedimfile", DETTOOL_MODE_ADDNORMALIZEDIMFILE,addnormalizedimfileArgs);
     PXTOOL_MODE("-normalized",      DETTOOL_MODE_NORMALIZED,    normalizedArgs);
     PXTOOL_MODE("-normalizedframe", DETTOOL_MODE_NORMALIZEDFRAME,normalizedframeArgs);
@@ -407,5 +407,5 @@
         printf("\nPan-STARRS Detrend Tool\n");
         printf("Usage: %s <mode> [<options>]\n\n", argv[0]);
-        printf(" <mode> : [-pending|-definebyexp|-definebyquery|-runs|-selectrun|-select|-raw|-addprocessed|-tostack|-processed|-addstacked|-tonormalize|-addnormstat|-normstat|-stacked|-stackedframe|-addnormalized|-normalized|-normalizedframe|-addresidimfile|-residimfile|-addresidexp|-residexp|-declaremasterframe|-masterframe|-master|-rerun]\n\n");
+        printf(" <mode> : [-pending|-definebyexp|-definebyquery|-runs|-selectrun|-select|-raw|-addprocessed|-tostack|-processed|-addstacked|-tonormalize|-addnormstat|-normstat|-stacked|-stackedframe|-addnormalizedimfile|-normalized|-normalizedframe|-addresidimfile|-residimfile|-addresidexp|-residexp|-declaremasterframe|-masterframe|-master|-rerun]\n\n");
         fprintf (stdout, "-pending ");
         psArgumentHelp(pendingArgs);
@@ -475,7 +475,7 @@
         psFree(stacframeArgs);
 
-        fprintf (stdout, "-addnormalized ");
-        psArgumentHelp(addnormalizedArgs);
-        psFree(addnormalizedArgs);
+        fprintf (stdout, "-addnormalizedimfile ");
+        psArgumentHelp(addnormalizedimfileArgs);
+        psFree(addnormalizedimfileArgs);
 
         fprintf (stdout, "-normalized ");
@@ -539,5 +539,5 @@
     psFree(stacArgs);
     psFree(stacframeArgs);
-    psFree(addnormalizedArgs);
+    psFree(addnormalizedimfileArgs);
     psFree(normalizedArgs);
     psFree(normalizedframeArgs);
