#![cfg_attr(windows, windows_subsystem = "windows")]
fn main() {
#[cfg(target_os = "macos")]
if std::env::args_os()
.nth(1)
.is_some_and(|arg| arg == "account")
{
use ai_usagebar::widget::cli::{Cli, Command};
use clap::Parser;
if let Some(Command::Account { action }) = Cli::parse().command {
std::process::exit(ai_usagebar::account::run(&action));
}
}
std::process::exit(ai_usagebar::tray::run());
}