Explorar el Código

remove "$0" and "_" options

Gildas hace 5 años
padre
commit
bf2246f1f1
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      cli/single-file

+ 2 - 0
cli/single-file

@@ -32,6 +32,8 @@ run(require("./args"));
 async function run(options) {
 	Object.keys(options).filter(optionName => optionName.includes("-"))
 		.forEach(optionName => delete options[optionName]);
+	delete options["$0"];
+	delete options["_"];
 	const singlefile = await require("./single-file-cli-api")(options);
 	let urls;
 	if (options.url && !singlefile.VALID_URL_TEST.test(options.url)) {