X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=nocommands.cpp;h=7df8edc351f2c9b799739832913b961c65726714;hb=a0f1fca79d2ddfa7ad36b4485039c68b5704fe8d;hp=5cf5a56f8161da1fa81fa3c371900fb2d806b626;hpb=510b1cfc25cd79391d6973ca20c5ec25fb1bb3b2;p=mothur.git diff --git a/nocommands.cpp b/nocommands.cpp index 5cf5a56..7df8edc 100644 --- a/nocommands.cpp +++ b/nocommands.cpp @@ -11,21 +11,16 @@ //********************************************************************************************************************** -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; }