Skip to content

Commit 63b5155

Browse files
authored
Fix argument format for calculatepackageid command (#4993)
This patch updates the argument format for `calculatepackageid` command, enclosing `packageFile` in square brankets to indicate that the specific file name should be put. Signed-off-by: Tatsuya Sato <[email protected]>
1 parent 94590aa commit 63b5155

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/source/commands/peercommand.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The `peer` command has five different subcommands, each of which allows
66
administrators to perform a specific set of tasks related to a peer. For
77
example, you can use the `peer channel` subcommand to join a peer to a channel,
8-
or the `peer chaincode` command to deploy a smart contract chaincode to a
8+
or the `peer chaincode` command to deploy a smart contract chaincode to a
99
peer.
1010

1111
## Syntax

docs/source/commands/peerlifecycle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Global Flags:
200200
Calculate the package ID for a packaged chaincode.
201201
202202
Usage:
203-
peer lifecycle chaincode calculatepackageid packageFile [flags]
203+
peer lifecycle chaincode calculatepackageid [packageFile] [flags]
204204
205205
Flags:
206206
--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

internal/peer/lifecycle/chaincode/calculatepackageid.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (i *CalculatePackageIDInput) Validate() error {
5252
// the package ID for a packaged chaincode
5353
func CalculatePackageIDCmd(p *PackageIDCalculator) *cobra.Command {
5454
calculatePackageIDCmd := &cobra.Command{
55-
Use: "calculatepackageid packageFile",
55+
Use: "calculatepackageid [packageFile]",
5656
Short: "Calculate the package ID for a chaincode.",
5757
Long: "Calculate the package ID for a packaged chaincode.",
5858
ValidArgs: []string{"1"},

0 commit comments

Comments
 (0)