Ignore underscore argument
This commit is contained in:
parent
e725c4d1eb
commit
e640cc8f77
1 changed files with 20 additions and 18 deletions
|
@ -9,6 +9,7 @@ module.exports = (input) => {
|
||||||
if (a.includes("=")) {
|
if (a.includes("=")) {
|
||||||
const [arg, value] = a.slice(2).split("=");
|
const [arg, value] = a.slice(2).split("=");
|
||||||
let ended = true;
|
let ended = true;
|
||||||
|
if (arg !== "_") {
|
||||||
if (value.startsWith("\"")) {
|
if (value.startsWith("\"")) {
|
||||||
if (value.endsWith("\"")) {
|
if (value.endsWith("\"")) {
|
||||||
args[arg] = value.slice(1).slice(0, -1);
|
args[arg] = value.slice(1).slice(0, -1);
|
||||||
|
@ -32,6 +33,7 @@ module.exports = (input) => {
|
||||||
} else {
|
} else {
|
||||||
args[a.slice(2)] = true;
|
args[a.slice(2)] = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (curr) {
|
} else if (curr) {
|
||||||
if (a.endsWith("\"")) {
|
if (a.endsWith("\"")) {
|
||||||
args[curr] += a.slice(0, -1);
|
args[curr] += a.slice(0, -1);
|
||||||
|
|
Loading…
Reference in a new issue