ctl: support no-pin option when adding
This commit is contained in:
parent
64bda611d5
commit
b1d4eee3ee
|
@ -370,6 +370,10 @@ content.
|
|||
Name: "allocations, allocs",
|
||||
Usage: "Optional comma-separated list of peer IDs",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "no-pin",
|
||||
Usage: "Do not pin after adding",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "wait",
|
||||
Usage: waitFlagDesc,
|
||||
|
@ -478,6 +482,7 @@ content.
|
|||
if c.String("allocations") != "" {
|
||||
p.UserAllocations = api.StringsToPeers(strings.Split(c.String("allocations"), ","))
|
||||
}
|
||||
p.NoPin = c.Bool("no-pin")
|
||||
p.Format = c.String("format")
|
||||
//p.Shard = shard
|
||||
//p.ShardSize = c.Uint64("shard-size")
|
||||
|
|
Loading…
Reference in New Issue
Block a user