]> git.donarmstrong.com Git - mothur.git/blobdiff - nocommands.cpp
broke up globaldata and moved error checking and help into commands
[mothur.git] / nocommands.cpp
index 974fce491c37f89d71ed8779d7d58f29a0eacc5e..9ac565bd49088f594a03e30351279b4231d242ea 100644 (file)
@@ -8,10 +8,11 @@
  */
 
 #include "nocommands.h"
+#include "validcommands.h"
 
 //**********************************************************************************************************************
 
-NoCommand::NoCommand(){}
+NoCommand::NoCommand(string option){}
 
 //**********************************************************************************************************************
 
@@ -22,7 +23,11 @@ NoCommand::~NoCommand(){}
 int NoCommand::execute(){
        //Could choose to give more help here?fdsah
        cout << "Invalid command." << "\n";
-       cout << "For more information on command parameters use the help() command." << "\n";
+       
+       ValidCommands* valid = new ValidCommands();
+       valid->printCommands(cout);
+       delete valid;
+       
        return 0;
 }