Emit warning when there is no space between -o and confusing arg

Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
This commit is contained in:
xizheyin
2025-07-10 14:17:10 +08:00
parent 0d11be5aab
commit af39c0c57c
4 changed files with 147 additions and 0 deletions

View File

@@ -1653,6 +1653,11 @@ impl RustcOptGroup {
OptionKind::FlagMulti => options.optflagmulti(short_name, long_name, desc),
};
}
/// This is for diagnostics-only.
pub fn long_name(&self) -> &str {
self.long_name
}
}
pub fn make_opt(