We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bf8374 commit 6da88a7Copy full SHA for 6da88a7
src/common/commands/parsing.ts
@@ -1,13 +1,6 @@
1
-import { readFileSync } from 'fs'
2
import yargs from 'yargs'
3
import { hideBin } from 'yargs/helpers'
4
5
-function _getPackageVersion(): string {
6
- const pkg = JSON.parse(readFileSync('../../../package.json').toString())
7
-
8
- return pkg.version
9
-}
10
11
// Handle parse args
12
export function parseArgs(): { [x: string]: unknown;
13
_: (string | number)[]; $0: string; } |
@@ -65,6 +58,6 @@ export function parseArgs(): { [x: string]: unknown;
65
58
// Set general parse config
66
59
return cmd.usage('Usage: $0 <command> [options...]')
67
60
.demandCommand(1)
68
- .version(`backuply v${_getPackageVersion()}`)
61
+ .version()
69
62
.argv
70
63
}
0 commit comments