Skip to content

Commit

Permalink
Added: Parsing of CMDL Args
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapellman committed Jul 11, 2024
1 parent 048d449 commit a49eb33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion crates/rvepp_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ version.workspace = true

[dependencies]
rvepp_protection_layers = { path = "../rvepp_protection_layers" }
rvepp_configuration = { path = "../rvepp_configuration" }
rvepp_configuration = { path = "../rvepp_configuration" }
rvepp_cmdl_args = { path = "../rvepp_cmdl_args"}
4 changes: 2 additions & 2 deletions crates/rvepp_cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ pub fn run() {
println!("(C) 2024 Jarred Capellman");
println!("Source code is available on https://github.com/jcapellman/rvepp");

let _args: Vec<String> = env::args().collect();
let args: Vec<String> = env::args().collect();

// TODO: Parse args to allow local overrides like the config location - for now only accept the config
let internal_vars = rvepp_cmdl_args::parse_args(args);

let config = match rvepp_configuration::load_config() {
None => {
Expand Down

0 comments on commit a49eb33

Please sign in to comment.