]> git.donarmstrong.com Git - mothur.git/blobdiff - errorchecking.cpp
deleted read.shared command and added its functionality to read.otu.
[mothur.git] / errorchecking.cpp
index d827929fd94290dbfb302d0fe36e76f4982874a0..430729d026ec5082416d2cdc118413dee290e48d 100644 (file)
@@ -352,13 +352,12 @@ bool ErrorCheck::checkInput(string input) {
                        //you want to do shared commands
                        if ((listfile != "") && (groupfile != ""))      {
                                validateParseFiles(); //checks the listfile and groupfile parameters
-                       }else { //you want to do single commands
+                       }else if (listfile != "") { //you want to do single commands
                                validateReadFiles();
                                validateReadPhil();
+                       }else {//you are reading a shared file
+                               validateReadFiles();
                        }
-               }else if (commandName == "read.shared") { 
-                       //you want to do shared commands with just the shared file
-                       validateReadFiles();
                }else if (commandName == "read.tree") { 
                        validateTreeFiles(); //checks the treefile and groupfile parameters
                }else if (commandName == "deconvolute") {