use clap::{ArgAction, Parser};
use sysinfo::Disks;

#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
pub struct Args {
    #[arg(short = 'O', long, action = ArgAction::SetTrue)]
    /// output all columns
    pub output_all: bool,

    #[arg(short, long)]
    /// output columns see (--list-columns)
    pub output: Option<String>
}

#[derive(Debug)]
pub struct App {
    pub disks: Disks,
    pub args: Args
}

impl App {
    pub fn new(disks: Disks) -> Self {
        let args = Args::parse();

        Self { disks, args }
    }
}
