X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=nocommands.cpp;h=7df8edc351f2c9b799739832913b961c65726714;hb=250e3b11b1c9c1e1ad458ab6c7e71ac2e67e11d9;hp=18a294801c961b7294bcf3985e733798cfe4d77a;hpb=de2dc9fb831f569b823031d0730f5a0d739e8290;p=mothur.git diff --git a/nocommands.cpp b/nocommands.cpp index 18a2948..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 - cout << "Invalid command." << "\n"; - - CommandFactory* valid = new CommandFactory(); + cout << "Invalid command.\n"; + + CommandFactory* valid = CommandFactory::getInstance(); valid->printCommands(cout); - delete valid; return 0; }