fix
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user