cmd/torrent: Add TODO about missing subcommand

This commit is contained in:
Matt Joiner 2022-03-09 20:57:54 +11:00
parent 02b6ee9954
commit 9ac5ce70de
No known key found for this signature in database
GPG Key ID: 6B990B8185E7F782
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ type pprintMetainfoFlags struct {
func metainfoCmd(ctx args.SubCmdCtx) (err error) {
var metainfoPath string
var mi *metainfo.MetaInfo
// TODO: Treat no subcommand as a failure.
return ctx.NewParser().AddParams(
args.Pos("torrent file", &metainfoPath, args.AfterParse(func() (err error) {
mi, err = metainfo.LoadFromFile(metainfoPath)