From 0645225801d01a673e9a3efac908aa6d727d7957 Mon Sep 17 00:00:00 2001 From: Phi Date: Mon, 10 Oct 2022 08:31:55 +0200 Subject: [PATCH] fix: ux: specify arg in `net ping` cmd Specify that you need to ping the `peerMultiaddrs` with the `lotus net ping` and `lotus-miner net ping`. --- cli/net.go | 5 +++-- documentation/en/cli-lotus-miner.md | 2 +- documentation/en/cli-lotus.md | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cli/net.go b/cli/net.go index b0615e0b1..6b10dbffc 100644 --- a/cli/net.go +++ b/cli/net.go @@ -124,8 +124,9 @@ var NetPeers = &cli.Command{ } var NetPing = &cli.Command{ - Name: "ping", - Usage: "Ping peers", + Name: "ping", + Usage: "Ping peers", + ArgsUsage: "[peerMultiaddr]", Flags: []cli.Flag{ &cli.IntFlag{ Name: "count", diff --git a/documentation/en/cli-lotus-miner.md b/documentation/en/cli-lotus-miner.md index a10cb45ba..ac0c212a5 100644 --- a/documentation/en/cli-lotus-miner.md +++ b/documentation/en/cli-lotus-miner.md @@ -1241,7 +1241,7 @@ NAME: lotus-miner net ping - Ping peers USAGE: - lotus-miner net ping [command options] [arguments...] + lotus-miner net ping [command options] [peerMultiaddr] OPTIONS: --count value, -c value specify the number of times it should ping (default: 10) diff --git a/documentation/en/cli-lotus.md b/documentation/en/cli-lotus.md index eb57455b5..03b626e44 100644 --- a/documentation/en/cli-lotus.md +++ b/documentation/en/cli-lotus.md @@ -2542,7 +2542,7 @@ NAME: lotus net ping - Ping peers USAGE: - lotus net ping [command options] [arguments...] + lotus net ping [command options] [peerMultiaddr] OPTIONS: --count value, -c value specify the number of times it should ping (default: 10)