mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-05 00:08:06 +08:00
Use long name for option lookup
License: MIT Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
This commit is contained in:
parent
9e11a41758
commit
bfc9eecb17
@ -160,7 +160,7 @@ var findProvidersDhtCmd = &cmds.Command{
|
||||
return
|
||||
}
|
||||
|
||||
numProviders, _, err := res.Request().Option("n").Int()
|
||||
numProviders, _, err := res.Request().Option("num-providers").Int()
|
||||
if err != nil {
|
||||
res.SetError(err, cmds.ErrNormal)
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user