#![allow(unused_imports)]
use clap::Parser;
use geolocate::location::{APIKeys, Args, Geolocation, LocationFrom};
use std::{error::Error, fmt::format};
fn main() -> Result<(), Box<dyn Error>> {
let args = Args::parse();
let geolocation = Geolocation::from(args.ip, args.name, args.api_key, args.file, args.default)?;
let with = geolocation.with();
with.fetch()?;
Ok(())
}