summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--infrastructure/buildenv-testmain-template.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp
index 0de18255..e5b1360d 100644
--- a/infrastructure/buildenv-testmain-template.cpp
+++ b/infrastructure/buildenv-testmain-template.cpp
@@ -248,7 +248,7 @@ int main(int argc, char * const * argv)
int ch;
- while ((ch = getopt_long(argc, argv, "c:d:qs:t:vPTUV", longopts, NULL))
+ while ((ch = getopt_long(argc, argv, "c:d:qs:t:vPTUVW:", longopts, NULL))
!= -1)
{
switch(ch)
@@ -320,6 +320,17 @@ int main(int argc, char * const * argv)
}
break;
+ case 'W':
+ {
+ logLevel = Logging::GetNamedLevel(optarg);
+ if (logLevel == Log::INVALID)
+ {
+ BOX_FATAL("Invalid logging level: " << optarg);
+ return 2;
+ }
+ }
+ break;
+
case 't':
{
Logging::SetProgramName(optarg);