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

Commit 4db8ccd

Browse files
committed
fix: allow specifying --version flag on commands
1 parent 945974b commit 4db8ccd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
import * as Config from '@oclif/config'
22
import Help from '@oclif/plugin-help'
33

4-
import {Command, flags} from '.'
4+
import {Command} from '.'
55

66
export class Main extends Command {
7-
static flags = {
8-
version: flags.version(),
9-
help: flags.help(),
10-
}
11-
127
static run(argv = process.argv.slice(2), options?: Config.LoadOptions) {
138
return super.run(argv, options || module.parent && module.parent.parent && module.parent.parent.filename || __dirname)
149
}

0 commit comments

Comments
 (0)