Skip to content

Custom Description for options and subcommands #2

Description

@Eshanatnight

Figure out a way to add a custom help and description messages, kinda like how clap does

the doc comments become the extra help/descriptions of the sub commands and options

#[derive(Parser)]
#[command(version, about, long_about = None)]
struct Cli {
    /// name to operate on
    name: String,
}
foo@bar$ ./app --help
A simple to app

Usage: app [OPTIONS]

Options:
  --name                               name to operate on
  -h, --help                           Print help
  -V, --version                        Print version

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions