diff options
author | Chocobozzz <me@florianbigard.com> | 2019-06-13 11:09:38 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-06-13 11:09:38 +0200 |
commit | 1a12f66d631d28a5a58ebbcd274426f2e6e5d203 (patch) | |
tree | edaf546dfc8bcdb55d271111618e65569aa68cc0 /server/tools/peertube.ts | |
parent | 4913295f9db1a7b814129d90b159a418cb32bb75 (diff) | |
download | PeerTube-1a12f66d631d28a5a58ebbcd274426f2e6e5d203.tar.gz PeerTube-1a12f66d631d28a5a58ebbcd274426f2e6e5d203.tar.zst PeerTube-1a12f66d631d28a5a58ebbcd274426f2e6e5d203.zip |
Add more CLI tests
Diffstat (limited to 'server/tools/peertube.ts')
-rw-r--r-- | server/tools/peertube.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/tools/peertube.ts b/server/tools/peertube.ts index 5d3ab2815..daa5586c3 100644 --- a/server/tools/peertube.ts +++ b/server/tools/peertube.ts | |||
@@ -63,9 +63,10 @@ if (!process.argv.slice(2).length) { | |||
63 | 63 | ||
64 | getSettings() | 64 | getSettings() |
65 | .then(settings => { | 65 | .then(settings => { |
66 | const state = (settings.default === undefined || settings.default === -1) ? | 66 | const state = (settings.default === undefined || settings.default === -1) |
67 | 'no instance selected, commands will require explicit arguments' : | 67 | ? 'no instance selected, commands will require explicit arguments' |
68 | ('instance ' + settings.remotes[settings.default] + ' selected') | 68 | : 'instance ' + settings.remotes[settings.default] + ' selected' |
69 | |||
69 | program | 70 | program |
70 | .on('--help', function () { | 71 | .on('--help', function () { |
71 | console.log() | 72 | console.log() |