-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raw Markdown displayed in command line help #231
Comments
Addressed in 479d9ba. |
@drcaramelsyrup Unfortunately, this isn’t quite addressed. While the short help (
The issue is that doc comments set both From the documentation it looks like clap (unlike structopt) allows resetting #[clap(
short,
long,
help = "...",
long_help = None
)] |
Btw, I have no idea what the description of the |
Describe the bug
Running a Pingora server with
--help
command line flag will produce descriptions including raw Markdown. Also, the names of command line flags unnecessarily. These are meant for online documentation and often make little sense as a command line help.Pingora info
Please include the following information about your environment:
Pingora version: 2501d4a
Rust version: 1.79.0-nightly (28e7b2bc0 2024-04-05)
Operating system version: Fedora 39
Steps to reproduce
Run
cargo run --example gateway -- --help
from the command line.Expected results
A human-readable output without any duplicated information.
Observed results
Raw Markdown and duplicated information on command line flags, pointless references to code (the command description in particular is meaningless) and references to code (
ServerConf
) that should have really been URLs:Additional context
The docstrings that this info is compiled from should really be adjusted. While an application extending the default command line options will overwrite the application description, adjusting the description of individual options is non-trivial.
Alternatively, the docstrings can be left unchanged and structopt help messages can be specified separately.
The text was updated successfully, but these errors were encountered: