cli: adjust flags description for smartcontract generate-*

This commit is contained in:
Anna Shaleva 2022-12-28 12:18:09 +03:00
parent 2334166423
commit 7bab81f196

View file

@ -26,7 +26,7 @@ var generatorFlags = []cli.Flag{
cli.StringFlag{ cli.StringFlag{
Name: "out, o", Name: "out, o",
Required: true, Required: true,
Usage: "Output of the compiled contract", Usage: "Output of the compiled wrapper",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "hash", Name: "hash",
@ -38,7 +38,7 @@ var generatorFlags = []cli.Flag{
var generateWrapperCmd = cli.Command{ var generateWrapperCmd = cli.Command{
Name: "generate-wrapper", Name: "generate-wrapper",
Usage: "generate wrapper to use in other contracts", Usage: "generate wrapper to use in other contracts",
UsageText: "neo-go contract generate-wrapper --manifest <file.json> --out <file.go> --hash <hash>", UsageText: "neo-go contract generate-wrapper --manifest <file.json> --out <file.go> --hash <hash> [--config <config>]",
Description: ``, Description: ``,
Action: contractGenerateWrapper, Action: contractGenerateWrapper,
Flags: generatorFlags, Flags: generatorFlags,
@ -47,7 +47,7 @@ var generateWrapperCmd = cli.Command{
var generateRPCWrapperCmd = cli.Command{ var generateRPCWrapperCmd = cli.Command{
Name: "generate-rpcwrapper", Name: "generate-rpcwrapper",
Usage: "generate RPC wrapper to use for data reads", Usage: "generate RPC wrapper to use for data reads",
UsageText: "neo-go contract generate-rpcwrapper --manifest <file.json> --out <file.go> --hash <hash>", UsageText: "neo-go contract generate-rpcwrapper --manifest <file.json> --out <file.go> --hash <hash> [--config <config>]",
Action: contractGenerateRPCWrapper, Action: contractGenerateRPCWrapper,
Flags: generatorFlags, Flags: generatorFlags,
} }