This commit is contained in:
greeneclipse committed 2026-08-13 23:43:53 +02:00
1 parent 322c70e5cf
commit 841a05572e
2 files changed
+37 -3

No files matched your search

+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();