bug: fix using clap macro incorrectly, causing broken long help name (#1526)

Basically, I did:

```
long = "blah blah blah"
```

but it should have been:

```
long,
long_help = "blah blah blah"
```

The former makes the _long help flag_ the description which... well,
isn't right.
This commit is contained in:
Clement Tsang 2024-08-01 15:21:09 +00:00 committed by GitHub
parent 9364955bcd
commit 03e69b3be0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,7 +95,7 @@ pub struct GeneralArgs {
long, long,
action = ArgAction::SetTrue, action = ArgAction::SetTrue,
help = "Temporarily shows the time scale in graphs.", help = "Temporarily shows the time scale in graphs.",
long = "Automatically hides the time scale in graphs after being shown for a brief moment when zoomed \ long_help = "Automatically hides the time scale in graphs after being shown for a brief moment when zoomed \
in/out. If time is disabled using --hide_time then this will have no effect." in/out. If time is disabled using --hide_time then this will have no effect."
)] )]
pub autohide_time: bool, pub autohide_time: bool,