parse_args: CLI commandline parsing for the frontend
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user