add command line option to show full category name

This patch adds `clap` as a dependency for command-line argument
parsing, and introduces a `-f` flag to allow toggling whether or not the
full names of character classes are displayed.
This commit is contained in:
pantonshire committed 2022-09-18 21:59:23 +01:00
1 parent 172d1a14fe
commit 6cb3b0a412
4 files changed
+193 -4

No files matched your search

+1 -1
View File
@@ -231,7 +231,7 @@ impl Category {
impl fmt::Display for Category {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}: {}", self.abbr(), self.full_name())
write!(f, "{}", self.abbr())
}
}