Skip to content

Commit 6da88a7

Browse files
committed
(release): v1.0.0 working
1 parent 3bf8374 commit 6da88a7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/common/commands/parsing.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
import { readFileSync } from 'fs'
21
import yargs from 'yargs'
32
import { hideBin } from 'yargs/helpers'
43

5-
function _getPackageVersion(): string {
6-
const pkg = JSON.parse(readFileSync('../../../package.json').toString())
7-
8-
return pkg.version
9-
}
10-
114
// Handle parse args
125
export function parseArgs(): { [x: string]: unknown;
136
_: (string | number)[]; $0: string; } |
@@ -65,6 +58,6 @@ export function parseArgs(): { [x: string]: unknown;
6558
// Set general parse config
6659
return cmd.usage('Usage: $0 <command> [options...]')
6760
.demandCommand(1)
68-
.version(`backuply v${_getPackageVersion()}`)
61+
.version()
6962
.argv
7063
}

0 commit comments

Comments
 (0)