Drop Python test file
[ouch.git] / oof / src / util.rs
blob00d874bdf33f4b63c500b32bedcc138f08fb9797
1 /// Util function to skip the two leading long flag hyphens.
2 pub fn trim_double_hyphen(flag_text: &str) -> &str {
3     let mut chars = flag_text.chars();
4     chars.nth(1); // Skipping 2 chars
5     chars.as_str()
8 // Currently unused
9 /// Util function to skip the single leading short flag hyphen.
10 pub fn trim_single_hyphen(flag_text: &str) -> &str {
11     let mut chars = flag_text.chars();
13     chars.next(); // Skipping 1 char
14     chars.as_str()