Skip to content

Modify help output in case of error #5341

@Adam-it

Description

@Adam-it

This issue is a follow up form the #5182.
Let's discuss here if and how we could adapt the help mode output in case of error.
In the related issue @martinlingstuyl suggested that the printed help in case of errors only shows the description of the command, combined with a message about how to get the full version.
This is an interesting idea for maybe a totally new help mode we could support.

Specs

In case of errors we currently show the help page. This issue is about changing that to a single line of text that instructs the user how to get help:

Run (command name) -h for help.

The current command should be included in the message. For example:

Run 'm365 spo site list -h' for help.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions