Skip to content

Commit a461c2b

Browse files
committedFeb 24, 2021
fix: 🐛 get --config value from Commander.opts()
1 parent 155dee2 commit a461c2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/cli.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ export class Cli {
156156
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-member-access
157157
.version(require("../package.json").version as string, "--version")
158158
.parse(argv)
159-
// console.log(program.opts())
160-
const config = await Config.load(program.config)
159+
const config = await Config.load(program.opts().config)
161160
return new Cli(program, new Devmoji(config))
162161
}
163162

0 commit comments

Comments
 (0)
Please sign in to comment.