diff --git a/cmd/scw/testdata/test-all-usage-help-usage.golden b/cmd/scw/testdata/test-all-usage-help-usage.golden index c1cd9e4c34..f06e7964ff 100644 --- a/cmd/scw/testdata/test-all-usage-help-usage.golden +++ b/cmd/scw/testdata/test-all-usage-help-usage.golden @@ -1,6 +1,6 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ -Get help about how the CLI works +Get help about how specific topics inside the CLI work USAGE: scw help @@ -18,4 +18,8 @@ GLOBAL FLAGS: -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") -p, --profile string The config profile to use +SEE ALSO: + # Print general help + scw --help + Use "scw help [command] --help" for more information about a command. diff --git a/internal/namespaces/help/custom.go b/internal/namespaces/help/custom.go index 4a2c35161a..6fc33c00cd 100644 --- a/internal/namespaces/help/custom.go +++ b/internal/namespaces/help/custom.go @@ -17,10 +17,16 @@ func GetCommands() *core.Commands { func helpRoot() *core.Command { return &core.Command{ - Short: "Get help about how the CLI works", + Short: "Get help about how specific topics inside the CLI work", Namespace: "help", AllowAnonymousClient: true, Groups: []string{"utility"}, + SeeAlsos: []*core.SeeAlso{ + { + Short: "Print general help", + Command: "scw --help", + }, + }, } }