]> Sergey Matveev's repositories - btrtrc.git/blobdiff - cmd/torrent/main.go
cmd/torrent: Add serve subcommand
[btrtrc.git] / cmd / torrent / main.go
index 098e3236a6cd4c1a77c3b0087059760370cb605d..4f83762a2b16aabb7172a139cd4a6f88fc350fd0 100644 (file)
@@ -109,6 +109,7 @@ func mainErr() error {
                        fmt.Printf("Torrent version prefix: %q\n", version.DefaultBep20Prefix)
                        return nil
                }),
+               args.Subcommand("serve", serve, args.Help("creates and seeds a torrent from a filepath")),
        )
        return nil
 }