From 96455bea65856ce53f89eb452ac17c260aa65126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanma=20Mu=C3=B1oz?= Date: Mon, 7 Oct 2024 11:23:51 +0200 Subject: [PATCH] doc: add packageFiles argument to peer lifecycle chaincode install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Juanma Muñoz Add packageFiles argument when presenting "peer lifecycle chaincode install" help information Resolves #4976 --- docs/source/commands/peerlifecycle.md | 2 +- internal/peer/lifecycle/chaincode/install.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/commands/peerlifecycle.md b/docs/source/commands/peerlifecycle.md index 759c1317c7e..090b3a501f1 100644 --- a/docs/source/commands/peerlifecycle.md +++ b/docs/source/commands/peerlifecycle.md @@ -116,7 +116,7 @@ Global Flags: Install a chaincode on a peer. Usage: - peer lifecycle chaincode install [flags] + peer lifecycle chaincode install [packageFiles] [flags] Flags: --connectionProfile string The fully qualified path to the connection profile that provides the necessary connection information for the network. Note: currently only supported for providing peer connection information diff --git a/internal/peer/lifecycle/chaincode/install.go b/internal/peer/lifecycle/chaincode/install.go index 5424e69297f..685835bfd58 100644 --- a/internal/peer/lifecycle/chaincode/install.go +++ b/internal/peer/lifecycle/chaincode/install.go @@ -55,7 +55,7 @@ func (i *InstallInput) Validate() error { // InstallCmd returns the cobra command for chaincode install. func InstallCmd(i *Installer, cryptoProvider bccsp.BCCSP) *cobra.Command { chaincodeInstallCmd := &cobra.Command{ - Use: "install", + Use: "install [packageFiles]", Short: "Install a chaincode.", Long: "Install a chaincode on a peer.", ValidArgs: []string{"1"},