chore: resolve linting errors & warnings
This commit is contained in:
parent
63ce5e330b
commit
b0ef223c9d
11 changed files with 177 additions and 144 deletions
|
|
@ -36,11 +36,12 @@ const parseArgs = (
|
|||
const opt = args.shift();
|
||||
switch (opt) {
|
||||
case "-h":
|
||||
case "--help":
|
||||
case "--help": {
|
||||
options.showHelp = true;
|
||||
break;
|
||||
}
|
||||
case "-r":
|
||||
case "--require":
|
||||
case "--require": {
|
||||
const moduleName = args.shift();
|
||||
if (moduleName == null) {
|
||||
throw new UsageError(
|
||||
|
|
@ -50,6 +51,7 @@ const parseArgs = (
|
|||
}
|
||||
options.require.push(moduleName);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
throw new UsageError(`unknown option ${opt}`, globalHelpText);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue