X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=nocommands.cpp;h=7df8edc351f2c9b799739832913b961c65726714;hp=974fce491c37f89d71ed8779d7d58f29a0eacc5e;hb=1a20e24ee786195ab0e1cccd4f5aede7a88f3f4e;hpb=c25c956e4a3c7ca3271d48ee6215c72b2ec80c44 diff --git a/nocommands.cpp b/nocommands.cpp index 974fce4..7df8edc 100644 --- a/nocommands.cpp +++ b/nocommands.cpp @@ -11,18 +11,17 @@ //********************************************************************************************************************** -NoCommand::NoCommand(){} - -//********************************************************************************************************************** - -NoCommand::~NoCommand(){} +NoCommand::NoCommand(string option) {} //********************************************************************************************************************** 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"; + cout << "Invalid command.\n"; + + CommandFactory* valid = CommandFactory::getInstance(); + valid->printCommands(cout); + return 0; }