diff options
author | Andrew Gallant <jamslam@gmail.com> | 2020-05-13 08:13:05 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2020-05-13 08:13:05 -0400 |
commit | 1980630f1770da3d7d392dc3b743d04018217e34 (patch) | |
tree | 581d11d5a57d9ffa51096e579308728b3c7a44d2 /crates | |
parent | 1e9a481a66c3804b772c2cdf4fb1e478384fe6e0 (diff) |
doc: fix egregious markup output
We use '+++' syntax to output a literal '**' for a '--glob' example.
This '+++' syntax is pretty ugly when rendered literally via --help. We
fix this by hackily inserting the '+++' syntax for its one specific case
that we need it during man page generation.
Not ideal but it works. And --help still has some '*foo*' markup, but we
live with that for now.
Fixes #1581
Diffstat (limited to 'crates')
-rw-r--r-- | crates/core/app.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/core/app.rs b/crates/core/app.rs index 69f9b57c..9535844a 100644 --- a/crates/core/app.rs +++ b/crates/core/app.rs @@ -1354,7 +1354,7 @@ command line takes precedence. When this flag is set, every file and directory is applied to it to test for a match. So for example, if you only want to search in a particular directory 'foo', then *-g foo* is incorrect because 'foo/bar' does not match the glob -'foo'. Instead, you should use *-g +++'foo/**'+++*. +'foo'. Instead, you should use *-g 'foo/**'*. " ); let arg = RGArg::flag("glob", "GLOB") |