//**********************************************************************************************************************
-NoCommand::NoCommand(string option){}
-
-//**********************************************************************************************************************
-
-NoCommand::~NoCommand(){}
+NoCommand::NoCommand(string option) {}
//**********************************************************************************************************************
int NoCommand::execute(){
//Could choose to give more help here?fdsah
- mothurOut("Invalid command.\n");
-
- CommandFactory* valid = new CommandFactory();
+ cout << "Invalid command.\n";
+
+ CommandFactory* valid = CommandFactory::getInstance();
valid->printCommands(cout);
- delete valid;
return 0;
}