Add word-level parsing
This commit is contained in:
parent
0d66b1ee7c
commit
198bc12507
34 changed files with 743 additions and 446 deletions
|
|
@ -1,5 +1,7 @@
|
|||
use std::path::PathBuf;
|
||||
|
||||
use crate::prelude::*;
|
||||
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct Arguments {
|
||||
pub hostname: String,
|
||||
|
|
@ -47,10 +49,7 @@ fn parse(defaults: &Arguments, args: &[String]) -> Arguments {
|
|||
} else if argument.eq("-g") || argument.eq("--graph") {
|
||||
out_args.graph_path = PathBuf::from(parameter);
|
||||
} else {
|
||||
crate::dev::log(
|
||||
&parse,
|
||||
&format!("Dropped unrecognized argument {argument}"),
|
||||
);
|
||||
log!("Dropped unrecognized argument {argument}");
|
||||
}
|
||||
} else {
|
||||
panic!("Argument {arg:?} has no corresponding value")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue