]> git.donarmstrong.com Git - mothur.git/blobdiff - nocommands.cpp
removing extra file output from pintail
[mothur.git] / nocommands.cpp
index 974fce491c37f89d71ed8779d7d58f29a0eacc5e..5cf5a56f8161da1fa81fa3c371900fb2d806b626 100644 (file)
@@ -11,7 +11,7 @@
 
 //**********************************************************************************************************************
 
-NoCommand::NoCommand(){}
+NoCommand::NoCommand(string option){}
 
 //**********************************************************************************************************************
 
@@ -21,8 +21,12 @@ 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";
+       mothurOut("Invalid command.\n");
+       
+       CommandFactory* valid = new CommandFactory();
+       valid->printCommands(cout);
+       delete valid;
+       
        return 0;
 }