diff --git a/src/index.ts b/src/index.ts index e968153..bf3df52 100644 --- a/src/index.ts +++ b/src/index.ts @@ -447,7 +447,7 @@ export class Config { public parseArg(args: arg.Result) { const argPairs = args._.reduce((prev: any, item: any) => { const parts = item.split("="); - const key = parts[0].replace("-", ""); + const key = parts[0].replace(/-/g, ""); prev[key] = parts[1]; return prev;