Skip to content

Commit ef2cdb4

Browse files
committed
Add custom as a colour option for command line usages
1 parent 33449b1 commit ef2cdb4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

command_line/commoncommandlinefunctions.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void getSettingsUsage(QStringList * text)
107107
*text << "";
108108
*text << "Node colours";
109109
*text << dashes;
110-
*text << "--colour <scheme> Node colouring scheme, from one of the following options: random, uniform, depth, blastsolid, blastrainbow (default: random if --query option not used, blastsolid if --query option used)";
110+
*text << "--colour <scheme> Node colouring scheme, from one of the following options: random, uniform, depth, blastsolid, blastrainbow, custom (default: random if --query option not used, blastsolid if --query option used)";
111111
*text << "";
112112
*text << "Random colour scheme";
113113
*text << dashes;
@@ -268,7 +268,7 @@ QString checkForInvalidOrExcessSettings(QStringList * arguments)
268268
checkOptionWithoutValue("--noaa", arguments);
269269
checkOptionWithoutValue("--singlearr", arguments);
270270
QStringList validColourOptions;
271-
validColourOptions << "random" << "uniform" << "depth" << "blastsolid" << "blastrainbow";
271+
validColourOptions << "random" << "uniform" << "depth" << "blastsolid" << "blastrainbow" << "custom";
272272
error = checkOptionForString("--colour", arguments, validColourOptions); if (error.length() > 0) return error;
273273
error = checkOptionForInt("--ransatpos", arguments, g_settings->randomColourPositiveSaturation, false); if (error.length() > 0) return error;
274274
error = checkOptionForInt("--ransatneg", arguments, g_settings->randomColourNegativeSaturation, false); if (error.length() > 0) return error;
@@ -1048,6 +1048,8 @@ NodeColourScheme getColourSchemeOption(QString option, QStringList * arguments)
10481048
return BLAST_HITS_SOLID_COLOUR;
10491049
else if (colourString == "blastrainbow")
10501050
return BLAST_HITS_RAINBOW_COLOUR;
1051+
else if (colourString == "custom")
1052+
return CUSTOM_COLOURS;
10511053

10521054
//Random colours is the default
10531055
return defaultScheme;

0 commit comments

Comments
 (0)