just 1.50.0

🤖 Just a command runner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

#[derive(Debug, PartialEq)]
pub(crate) enum Switch {
  Long(String),
  Short(char),
}

impl Display for Switch {
  fn fmt(&self, f: &mut Formatter) -> fmt::Result {
    match &self {
      Self::Long(long) => write!(f, "--{long}"),
      Self::Short(short) => write!(f, "-{short}"),
    }
  }
}