parse_args: CLI commandline parsing for the frontend

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-06-19 17:34:18 +02:00
parent 45ee22c473
commit 2dbea55fba

View File

@@ -1,10 +1,17 @@
/* advotracker infrastructure.
*
* Copyright 2020 Ralf Zerres <ralf.zerres@networkx.de>
* SPDX-License-Identifier: (0BSD or MIT)
*/
use viperus::Viperus;
/// The given Viperus structure will be muted according to the
/// processed default, environment and commandline arguments
pub fn parse_args(v: &mut Viperus) -> Result<(), Box<dyn std::error::Error>> {
//use log::{debug, info, trace, warn};
use log::trace;
//use log::trace;
use tracing::{trace, Level};
use std::env;
if cfg!(feature = "yaml") {