Index: trunk/ippTools/src/chiptoolConfig.c
===================================================================
--- trunk/ippTools/src/chiptoolConfig.c	(revision 6103)
+++ trunk/ippTools/src/chiptoolConfig.c	(revision 6107)
@@ -73,4 +73,11 @@
     psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-filter",  0, "define filter of interest", "");
 
+    if (config->mode == P2_MODE_NONE) {
+        fprintf (stderr, "search mode not specified\n");
+        psArgumentHelp(config->arguments);
+        psFree(config->arguments);
+        exit(EXIT_FAILURE);
+    }
+
     if (! psArgumentParse(config->arguments, &argc, argv) || argc != 1) {
         printf("\nPan-STARRS Phase 2 Search Tool\n\n");
@@ -83,5 +90,5 @@
 
     // add the input and output images to the arguments list
-    psMetadataAddStr (config->arguments, PS_LIST_TAIL, "-output", 0, "Name of the output image", argv[1]);
+    //psMetadataAddStr (config->arguments, PS_LIST_TAIL, "-output", 0, "Name of the output image", argv[1]);
 
     // define Database handle, if used
