Skip to content

Commit 77d0e09

Browse files
committed
Inform when no operation is done
1 parent ec2d58c commit 77d0e09

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

include/reportsystem.h

+2
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ enum InfoCode {
307307

308308
UsingPlatform = 5,
309309

310+
OnlyReadAndWrite = 6,
311+
310312

311313
__MAXINFO
312314
};

source/reportMessages/infoMessages.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,8 @@ const std::map<InfoCode, const char *> reporting::reportManager::InfoMessages =
4747
"Removing sequence \"[tag]\" as it is a duplicate of \"[tag]\"."},
4848

4949
{InfoCode::UsingPlatform,
50-
"Using \"[tag]\" CPU extensions to compute statistics."}
50+
"Using \"[tag]\" CPU extensions to compute statistics."},
51+
52+
{InfoCode::OnlyReadAndWrite,
53+
"No filtering or calculation performed. Output same MSA as input."}
5154
};

source/trimalManager.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,11 @@ int trimAlManager::parseArguments(int argc, char **argv) {
314314
if ((origAlig = formatManager.loadAlignment(infile)) == nullptr) {
315315
appearErrors = true;
316316
}
317+
318+
if ((*i) + 1 == *argc) {
319+
debug.report(InfoCode::OnlyReadAndWrite);
320+
}
321+
317322
return Recognized;
318323
}
319324
return NotRecognized;

0 commit comments

Comments
 (0)