mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
fix(test): reject i18n report flag values
This commit is contained in:
@@ -128,7 +128,7 @@ export function parseArgs(argv: string[]): ReportArgs {
|
||||
|
||||
function readOptionValue(argv: string[], index: number, flag: string) {
|
||||
const value = argv[index];
|
||||
if (!value || value.startsWith("--")) {
|
||||
if (!value || value.startsWith("-")) {
|
||||
throw new Error(`${flag} requires a value`);
|
||||
}
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user