virust 2.1.5

ViRust is a 'benchmarking' tool or software that allows you to fill the desired amount of memory with random values, to see how your computer performs with limited RAM.
use clap::{Parser, Args, Subcommand};

/// ViRust Memory Filler
#[derive(Parser, Debug)]
#[command(author, version, about)]
pub struct Arguments {
    #[command(subcommand)]
    pub commands: Option<Commands>
}

#[derive(Subcommand, Debug)]
pub enum Commands {
    /// Fills the random access memory to a desired amount
    Memory(MemoryArgs),
    Gui
}

#[derive(Args, Debug)]
pub struct MemoryArgs {
    /// Gigas of RAM to be filled
    #[arg(short, long, default_value_t=0.0)]
    pub gigas: f64,

    /// Megas of RAM to be filled
    #[arg(short, long, default_value_t=0.0)]
    pub megas: f64,

    /// Kilobytes of RAM to be filled
    #[arg(short, long, default_value_t=100)]
    pub kilos: u64
}