option_parser: Fix incorrect error message

The error message for the InvalidSyntax was copied from UnknownOption.
Correct it to "invalid syntax".

Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-04-14 07:52:07 +01:00
parent d212255073
commit e5496a093d

View File

@@ -73,7 +73,7 @@ pub enum OptionParserError {
#[error("unknown option: {0}")]
UnknownOption(String),
/// The input string has invalid syntax (unbalanced quotes/brackets, missing `=`).
#[error("unknown option: {0}")]
#[error("invalid syntax: {0}")]
InvalidSyntax(String),
/// A value could not be converted to the requested type.
#[error("unable to convert {1} for {0}")]