Add lib.rs, scaffold testing
This commit is contained in:
parent
99d05223d7
commit
d9a6938eb6
11 changed files with 57 additions and 14 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use std::path::PathBuf;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct Arguments {
|
||||
pub hostname: String,
|
||||
pub port: u16,
|
||||
|
|
@ -20,6 +20,7 @@ impl Arguments {
|
|||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn parse(&self) -> Arguments {
|
||||
let args: Vec<String> = std::env::args().collect();
|
||||
parse(self, &args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue