diff options
Diffstat (limited to 'server/tools')
-rw-r--r-- | server/tools/cli.ts | 3 | ||||
-rwxr-xr-x | server/tools/peertube.ts | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/server/tools/cli.ts b/server/tools/cli.ts index 87d1512a3..53b20964e 100644 --- a/server/tools/cli.ts +++ b/server/tools/cli.ts | |||
@@ -1,8 +1,7 @@ | |||
1 | const config = require('application-config')('PeerTube/CLI') | 1 | const config = require('application-config')('PeerTube/CLI') |
2 | const netrc = require('netrc-parser').default | 2 | const netrc = require('netrc-parser').default |
3 | import { getVersion } from '../helpers/utils' | ||
4 | 3 | ||
5 | const version = getVersion | 4 | const version = require('../../../package.json').version |
6 | 5 | ||
7 | let settings = { | 6 | let settings = { |
8 | remotes: [], | 7 | remotes: [], |
diff --git a/server/tools/peertube.ts b/server/tools/peertube.ts index 21609deed..ad76bafb4 100755 --- a/server/tools/peertube.ts +++ b/server/tools/peertube.ts | |||
@@ -7,7 +7,7 @@ import { | |||
7 | } from './cli' | 7 | } from './cli' |
8 | 8 | ||
9 | program | 9 | program |
10 | .version(version(), '-v, --version') | 10 | .version(version, '-v, --version') |
11 | .usage('[command] [options]') | 11 | .usage('[command] [options]') |
12 | 12 | ||
13 | /* Subcommands automatically loaded in the directory and beginning by peertube-* */ | 13 | /* Subcommands automatically loaded in the directory and beginning by peertube-* */ |