mirror of
https://github.com/clap-rs/clap
synced 2025-01-23 01:45:00 +00:00
3755c56dcf
derive arguments like this: #[arg(long)] pub flag: bool, were producing option descriptions like this: --flag=FLAG FLAG is spurious. It turns out that derive always sets a value name, for simplicity, even when there are no arguments. Check for this case. Fixes #4443.
15 lines
238 B
Text
15 lines
238 B
Text
.ie /n(.g .ds Aq /(aq
|
|
.el .ds Aq '
|
|
.TH my-app 1 "my-app "
|
|
.SH NAME
|
|
my/-app
|
|
.SH SYNOPSIS
|
|
/fBmy/-app/fR [/fB/-/-flag/fR] [/fB/-h/fR|/fB/-/-help/fR]
|
|
.SH DESCRIPTION
|
|
.SH OPTIONS
|
|
.TP
|
|
/fB/-/-flag/fR
|
|
|
|
.TP
|
|
/fB/-h/fR, /fB/-/-help/fR
|
|
Print help
|