fix: use regex
This commit is contained in:
parent
4f9cb35ac4
commit
4475f122f1
|
@ -447,7 +447,7 @@ export class Config {
|
|||
public parseArg(args: arg.Result<any>) {
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue