From 5dafdd9a2332e66a7c2e0379bcb9013009b561f2 Mon Sep 17 00:00:00 2001 From: Lawrence Chou Date: Fri, 14 Oct 2022 16:43:01 +0800 Subject: [PATCH] Preserve --help output ordering after upgrade Clap to 4.0 From the [4.0 breaking change][1]: ... * (help) Make DeriveDisplayOrder the default and removed the setting. To sort help, set next_display_order(None) (#2808) ... [1]: https://github.com/clap-rs/clap/blob/master/CHANGELOG.md#breaking-changes --- meilisearch-http/src/option.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/option.rs b/meilisearch-http/src/option.rs index 0445bf2ca..c7b157fd0 100644 --- a/meilisearch-http/src/option.rs +++ b/meilisearch-http/src/option.rs @@ -63,7 +63,7 @@ const DEFAULT_DUMPS_DIR: &str = "dumps/"; const DEFAULT_LOG_LEVEL: &str = "INFO"; #[derive(Debug, Clone, Parser, Serialize, Deserialize)] -#[clap(version)] +#[clap(version, next_display_order = None)] #[serde(rename_all = "snake_case", deny_unknown_fields)] pub struct Opt { /// Designates the location where database files will be created and retrieved.