Skip to content

Commit

Permalink
bug: fix using clap macro incorrectly, causing broken long help name (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
ClementTsang authored Aug 1, 2024
1 parent 9364955 commit 03e69b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub struct GeneralArgs {
long,
action = ArgAction::SetTrue,
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."
)]
pub autohide_time: bool,
Expand Down

0 comments on commit 03e69b3

Please sign in to comment.