X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftools%2Fpeertube-watch.ts;h=892c9e7a695e2c024d06a201ecb03fb7f31b3fa3;hb=12152aa09ff47dc5c5a627c27030855e254e58ad;hp=3ca3e242a6dfd19d54609c6a8f76cb9da289934c;hpb=8cc6120118a9fb75b3165c9f84b2d0068d1ade72;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tools/peertube-watch.ts b/server/tools/peertube-watch.ts index 3ca3e242a..892c9e7a6 100644 --- a/server/tools/peertube-watch.ts +++ b/server/tools/peertube-watch.ts @@ -1,7 +1,7 @@ import { registerTSPaths } from '../helpers/register-ts-paths' registerTSPaths() -import * as program from 'commander' +import { program, Option, OptionValues } from 'commander' import { join } from 'path' import { execSync } from 'child_process' @@ -9,7 +9,7 @@ program .name('watch') .arguments('') .addOption( - new program.Option('-g, --gui ', 'player type') + new Option('-g, --gui ', 'player type') .default('vlc') .choices([ 'airplay', 'stdout', 'chromecast', 'mpv', 'vlc', 'mplayer', 'xbmc' ]) ) @@ -22,7 +22,7 @@ program .action((url, options) => run(url, options)) .parse(process.argv) -function run (url: string, options: program.OptionValues) { +function run (url: string, options: OptionValues) { if (!url) { console.error(' positional argument is required.') process.exit(-1)