master
Avril 4 years ago
parent f16bf876e2
commit a536c8f9f5
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -20,7 +20,7 @@ pub fn usage() -> !
println!(); println!();
//TODO: generalise units //TODO: generalise units
println!(r#"Units: println!(r#"Units:
BYTES\t\tConvert byte unit into single bytes"#); BYTES Convert byte unit into single bytes"#);
std::process::exit(0) std::process::exit(0)
} }

@ -11,6 +11,6 @@ impl Conversion for Bytes
fn convert(&self, input: &str) -> Result<Self::Output, Self::Error> fn convert(&self, input: &str) -> Result<Self::Output, Self::Error>
{ {
todo!()
} }
} }

@ -23,7 +23,7 @@ fn main() {
match unwrap!(arg::parse_args()) { match unwrap!(arg::parse_args()) {
Operation::Help => arg::usage(), Operation::Help => arg::usage(),
Operation::Convert(unit, from) => { Operation::Convert(unit, from) => {
unwrap!(conv::dispatch(unit, from)); unwrap!(conv::dispatch_out(unit, from));
}, },
} }
} }

Loading…
Cancel
Save