Skip to content

Commit cdd6e79

Browse files
committed
feat: remove version option
1 parent 9cd2084 commit cdd6e79

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ path to an aspida config file
4343

4444
enable watch mode
4545

46-
### `--version`
47-
48-
display version
49-
5046
## License
5147

5248
aspida2openapi is licensed under a [MIT License](https://github.com/aspida/aspida2openapi/blob/main/LICENSE).

src/cli.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,10 @@ import type { ConfigFile, PartialConfig } from './getConfig';
66

77
export const run = (args: string[]) => {
88
const argv: Record<string, string | undefined> = minimist(args, {
9-
string: ['version', 'config', 'output', 'watch'],
10-
alias: { v: 'version', c: 'config', o: 'output', w: 'watch' },
9+
string: ['config', 'output', 'watch'],
10+
alias: { c: 'config', o: 'output', w: 'watch' },
1111
});
1212

13-
if (argv.version !== undefined) {
14-
console.log(`v${require('../package.json').version}`);
15-
return;
16-
}
17-
1813
const configs: ConfigFile[] = getConfigs(argv.config);
1914

2015
if (configs.length > 1) {

0 commit comments

Comments
 (0)