cmd/torrent: Add TODO about missing subcommand
This commit is contained in:
parent
02b6ee9954
commit
9ac5ce70de
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue