Skip to content

Missing functionality from Microsoft.Extensions.CommandLineUtils #1431

Open
@dorssel

Description

@dorssel

Still available, but no longer developed, there is Microsoft.Extensions.CommandLineUtils. It has the option of specifying ExtendedHelpText, which is displayed at the end of the help for a (sub-)command. Where Description is the short one-liner displayed next to the list of available (sub-)commands, the ExtendedHelpText is the more detailed help text for the (sub-)command itself. For example:

> foo --help
...
Commands:
  bar  Perform bar (* this is the description *)

and

> foo bar --help
bar
  Perform bar (* this is the description *)

Usage:
  foo bar [options]

Options:
  ...

Bar will do blabla. The changes will be persistent. (* these lines are the ExtendedHelpText *)
Exactly one of the options '--option-x' or '--option-y' must be provided.
If the directory does not exist, it will be created.

But maybe I am missing something that is already in place for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions