Sync ops.md, update CLI --help output to be consistent in descriptions

Signed-off-by: Alex Rodriguez <alexrodriguez@ibm.com>
This commit is contained in:
Alex Rodriguez
2023-10-30 08:32:30 -07:00
parent 332fbd907e
commit 124d3a20a6
4 changed files with 29 additions and 8 deletions

View File

@@ -62,6 +62,11 @@ func init() {
if err := setRlimit(); err != nil {
panic(err)
}
cli.HelpFlag = cli.BoolFlag{
Name: "help, h",
Usage: "Show help",
}
}
type worker interface {

View File

@@ -57,6 +57,14 @@ func init() {
cli.VersionPrinter = func(c *cli.Context) {
fmt.Println(c.App.Name, version.Package, c.App.Version, version.Revision)
}
cli.VersionFlag = cli.BoolFlag{
Name: "version, v",
Usage: "Print the version",
}
cli.HelpFlag = cli.BoolFlag{
Name: "help, h",
Usage: "Show help",
}
}
// App returns a *cli.App instance.

View File

@@ -55,6 +55,14 @@ func init() {
cli.VersionPrinter = func(c *cli.Context) {
fmt.Println(c.App.Name, version.Package, c.App.Version)
}
cli.VersionFlag = cli.BoolFlag{
Name: "version, v",
Usage: "Print the version",
}
cli.HelpFlag = cli.BoolFlag{
Name: "help, h",
Usage: "Show help",
}
}
// New returns a *cli.App instance.