]> git.donarmstrong.com Git - mothur.git/blobdiff - getcommandinfocommand.cpp
indicator command
[mothur.git] / getcommandinfocommand.cpp
index e75897f6bae4bf45142ec7fd8cf643fcb4e483c0..ad706ef6bedeacf414ac9bbe3ad7119735b514d2 100644 (file)
@@ -102,6 +102,7 @@ int GetCommandInfoCommand::execute(){
                                
                                //general info
                                out << "commandName=" << thisCommand->getCommandName() << endl;
+                               //cout << thisCommand->getCommandName() << " current citation = " << thisCommand->getCitation() << endl;
                                out << "commandCategory=" << thisCommand->getCommandCategory() << endl;
                                
                                //remove /n from help string since gui reads line by line
@@ -112,6 +113,16 @@ int GetCommandInfoCommand::execute(){
                                }
                                out << "help=" << newHelpString << endl;
                                
+                               //remove /n from citation string since gui reads line by line
+                               string mycitationString = thisCommand->getCitation();
+                               string newCitationString = "";
+                               for (int i = 0; i < mycitationString.length(); i++) { 
+                                       if (mycitationString[i] != '\n') { newCitationString += mycitationString[i]; }
+                               }
+                               out << "citation=" << newCitationString << endl;
+                               
+                               out << "description=" << thisCommand->getDescription() << endl;
+                               
                                //outputTypes - makes something like outputTypes=fasta-name-qfile
                                map<string, vector<string> > thisOutputTypes = thisCommand->getOutputFiles();
                                map<string, vector<string> >::iterator itTypes;