]> git.donarmstrong.com Git - mothur.git/blobdiff - nocommands.cpp
Revert to previous commit
[mothur.git] / nocommands.cpp
diff --git a/nocommands.cpp b/nocommands.cpp
new file mode 100644 (file)
index 0000000..7df8edc
--- /dev/null
@@ -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;
+}
+
+//**********************************************************************************************************************