Improve the contact email flag to make it friendly to disable prompt

This commit is contained in:
Clément Renault 2025-06-05 14:49:08 +02:00
parent 4fc24cb691
commit e575b5af74
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F

View file

@ -349,6 +349,9 @@ pub struct Opt {
pub log_level: LogLevel,
/// Sets the email address to contact for support and news.
///
/// Use this option to disable contact email prompting. Leave
/// blank or without value to disable contact email prompting.
#[clap(long, env = MEILI_CONTACT_EMAIL)]
pub contact_email: Option<Option<String>>,