Fix new -forcenewline argument

This commit is contained in:
Edward Wright 2022-03-16 10:48:22 -04:00
parent f0fea8a534
commit 097850747e

View File

@ -424,6 +424,12 @@ namespace SimplySerial
SimplySerial.Quiet = true; SimplySerial.Quiet = true;
} }
// force linefeeds in place of carriage returns in received data
else if (argument[0].StartsWith("f"))
{
forceNewline = true;
}
// the remainder of possible command-line arguments require two parameters, so let's enforce that now // the remainder of possible command-line arguments require two parameters, so let's enforce that now
else if (argument.Count() < 2) else if (argument.Count() < 2)
{ {
@ -527,12 +533,6 @@ namespace SimplySerial
logFile = argument[1]; logFile = argument[1];
} }
// force linefeeds in place of carriage returns in received data
else if (argument[0].StartsWith("f"))
{
forceNewline = true;
}
// an invalid/incomplete argument was passed // an invalid/incomplete argument was passed
else else
{ {