// Copyright 2021 - Nym Technologies SA // SPDX-License-Identifier: Apache-2.0 use std::error::Error; use clap::{crate_name, crate_version, Parser}; use nym_bin_common::logging::{maybe_print_banner, setup_logging}; use nym_network_defaults::setup_env; mod commands; mod config; pub mod error; #[tokio::main] async fn main() -> Result<(), Box> { setup_logging(); maybe_print_banner(crate_name!(), crate_version!()); let args = commands::Cli::parse(); setup_env(args.config_env_file.as_ref()); commands::execute(&args).await }