mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 07:59:59 -07:00
convert arg parsing errors into stderr printing, remove main_cli
This commit is contained in:
committed by
Markus Unterwaditzer
parent
4cdc9961d3
commit
f6e118a5cc
@@ -1,6 +1,7 @@
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
async fn main() {
|
||||
if let Err(e) = installer::main_cli().await {
|
||||
fn main() {
|
||||
let args: Vec<String> = std::env::args().skip(1).collect();
|
||||
|
||||
if let Err(e) = installer::run_with_callback(args.iter().map(|s| s.as_str()), None) {
|
||||
eprintln!("{e:?}");
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user