console.log(' $ peertube watch https://peertube.cpy.re/videos/watch/e8a1af4e-414a-4d58-bfe6-2146eed06d10')
console.log()
})
- .action((url, cmd) => {
- run(url, cmd)
- .catch(err => {
- console.error(err)
- process.exit(-1)
- })
- })
+ .action((url, cmd) => run(url, cmd))
.parse(process.argv)
-async function run (url: string, program: any) {
+function run (url: string, program: any) {
if (!url) {
console.error('<url> positional argument is required.')
process.exit(-1)