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:
1 parent
172d1a14fe
commit
6cb3b0a412
4 files changed
+193
-4
No files matched your search
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user