[clap_mangen] Subcommand references in man pages miss prefix #4231
Labels
A-man
Area: man generator
C-bug
Category: Updating dependencies
E-easy
Call for participation: Experience needed to fix: Easy / not much
E-help-wanted
Call for participation: Help is requested to fix this issue.
Please complete the following tasks
Rust Version
rustc 1.63.0 (4b91a6ea7 2022-08-08)
Clap Version
v3.2.22 (clap_mangen v0.1.11)
Minimal reproducible code
Steps to reproduce the bug with the above code
Create a dir
temp
in the current pwd and run a basic app with the above setup withcargo run -- manpages temp
. As implementation for creating the manpages I use the below code:Actual Behaviour
In the end of the man pages, the direct subcommands are listed as additional man page files. The sum of all these references are as follows:
sample-check(1)
sample-manpages(1)
sample-temp(1)
temp-test-a(1)
<-- missing sample- prefixtemp-test-b(1)
<-- missing sample- prefixExpected Behaviour
As seen above, the last two references miss the expected prefix. The actual existing file name is right, but the names inside the man pages are wrong. The expected names would be:
sample(1)
sample-check(1)
sample-manpages(1)
sample-temp(1)
sample-temp-test-a(1)
sample-temp-test-b(1)
Additional Context
Originally mentioned in discussion #3603, now extracted here as issue.
Debug Output
No response
The text was updated successfully, but these errors were encountered: