This commit is contained in:
2026-08-13 23:43:53 +02:00
parent 322c70e5cf
commit 841a05572e
2 changed files with 37 additions and 3 deletions
+6 -1
View File
@@ -62,7 +62,12 @@ function parseArgs(argv) {
continue;
}
if (a === "--company" || a === "-company") {
out.company = String(argv[++i] || "").trim();
// Join remaining tokens until next --flag so unquoted "Admin Company" works.
const parts = [];
while (i + 1 < argv.length && !String(argv[i + 1]).startsWith("-")) {
parts.push(String(argv[++i]));
}
out.company = parts.join(" ").trim();
continue;
}
if (a === "--help" || a === "-h") usage();