Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit b880aa3

Browse files
committed
fix: use LoadOptions
1 parent d95721b commit b880aa3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/command.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default abstract class Command {
4040
config: Config.IConfig
4141
protected debug: (...args: any[]) => void
4242

43-
constructor(public argv: string[], options: Config.Options) {
43+
constructor(public argv: string[], options: Config.LoadOptions) {
4444
this.id = this.ctor.id
4545
this.config = Config.load(options || module.parent && module.parent.parent && module.parent.parent.filename || __dirname)
4646
try {

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ export class Main extends Command {
3131
}
3232
}
3333

34-
export function run(argv = process.argv.slice(2), options?: Config.Options) {
34+
export function run(argv = process.argv.slice(2), options?: Config.LoadOptions) {
3535
return Main.run(argv, options)
3636
}

0 commit comments

Comments
 (0)