X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=nocommands.cpp;fp=nocommands.cpp;h=7df8edc351f2c9b799739832913b961c65726714;hb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;hp=0000000000000000000000000000000000000000;hpb=1b73ff67c83892a025e597dabd9df6fe7b58206a;p=mothur.git diff --git a/nocommands.cpp b/nocommands.cpp new file mode 100644 index 0000000..7df8edc --- /dev/null +++ b/nocommands.cpp @@ -0,0 +1,28 @@ +/* + * nocommand.cpp + * Dotur + * + * Created by Sarah Westcott on 1/2/09. + * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. + * + */ + +#include "nocommands.h" + +//********************************************************************************************************************** + +NoCommand::NoCommand(string option) {} + +//********************************************************************************************************************** + +int NoCommand::execute(){ + //Could choose to give more help here?fdsah + cout << "Invalid command.\n"; + + CommandFactory* valid = CommandFactory::getInstance(); + valid->printCommands(cout); + + return 0; +} + +//**********************************************************************************************************************