local-dir path, excludes param logging

This commit is contained in:
SamKirkland
2020-11-13 12:12:25 -06:00
parent 649aa38be8
commit f0ef8012ea
6 changed files with 40 additions and 47 deletions

View File

@@ -129,10 +129,12 @@ function optionalInt(argumentName: string, rawValue: string): number | undefined
}
function optionalStringArray(argumentName: string, rawValue: string): string[] | undefined {
console.log(rawValue);
if (rawValue.length === 0) {
return undefined;
}
// split value by space and comma
return rawValue.split(", ");
return rawValue.split("\n").filter(str => str !== "");
}