chore: update * pin prettier version & format code
This commit is contained in:
parent
274fe7778e
commit
45d96fae9f
18 changed files with 93 additions and 78 deletions
|
|
@ -24,7 +24,7 @@ interface Options {
|
|||
}
|
||||
|
||||
const parseArgs = (
|
||||
args: string[]
|
||||
args: string[],
|
||||
): { options: Options; commandName?: string; commandArgs: string[] } => {
|
||||
const options: Options = {
|
||||
showHelp: false,
|
||||
|
|
@ -46,7 +46,7 @@ const parseArgs = (
|
|||
if (moduleName == null) {
|
||||
throw new UsageError(
|
||||
`-r requires a valid module name`,
|
||||
globalHelpText
|
||||
globalHelpText,
|
||||
);
|
||||
}
|
||||
options.require.push(moduleName);
|
||||
|
|
@ -84,7 +84,7 @@ const _main = async (args: string[]): Promise<void> => {
|
|||
default:
|
||||
throw new UsageError(
|
||||
`unknown command ${commandName}`,
|
||||
globalHelpText
|
||||
globalHelpText,
|
||||
);
|
||||
}
|
||||
// NOTE: Should this just delegate to the command?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue