feat: cli: Hide sector nums in 'proving deadline' by default
This commit is contained in:
parent
f46cfb44b9
commit
9ad7276dc9
@ -268,8 +268,15 @@ var provingDeadlinesCmd = &cli.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var provingDeadlineInfoCmd = &cli.Command{
|
var provingDeadlineInfoCmd = &cli.Command{
|
||||||
Name: "deadline",
|
Name: "deadline",
|
||||||
Usage: "View the current proving period deadline information by its index ",
|
Usage: "View the current proving period deadline information by its index",
|
||||||
|
Flags: []cli.Flag{
|
||||||
|
&cli.BoolFlag{
|
||||||
|
Name: "sector-nums",
|
||||||
|
Aliases: []string{"n"},
|
||||||
|
Usage: "Print sector/fault numbers belonging to this deadline",
|
||||||
|
},
|
||||||
|
},
|
||||||
ArgsUsage: "<deadlineIdx>",
|
ArgsUsage: "<deadlineIdx>",
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
|
|
||||||
@ -342,10 +349,14 @@ var provingDeadlineInfoCmd = &cli.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("Partition Index: %d\n", pIdx)
|
fmt.Printf("Partition Index: %d\n", pIdx)
|
||||||
fmt.Printf("Sectors: %d\n", sectorCount)
|
fmt.Printf("\tSectors: %d\n", sectorCount)
|
||||||
fmt.Printf("Sector Numbers: %v\n", sectorNumbers)
|
if cctx.Bool("sector-nums") {
|
||||||
fmt.Printf("Faults: %d\n", faultsCount)
|
fmt.Printf("\tSector Numbers: %v\n", sectorNumbers)
|
||||||
fmt.Printf("Faulty Sectors: %d\n", fn)
|
}
|
||||||
|
fmt.Printf("\tFaults: %d\n", faultsCount)
|
||||||
|
if cctx.Bool("sector-nums") {
|
||||||
|
fmt.Printf("\tFaulty Sectors: %d\n", fn)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
|
@ -2054,7 +2054,7 @@ USAGE:
|
|||||||
lotus-miner proving deadline [command options] <deadlineIdx>
|
lotus-miner proving deadline [command options] <deadlineIdx>
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
--help, -h show help (default: false)
|
--sector-nums, -n Print sector/fault numbers belonging to this deadline (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user