usestd::path::PathBuf;useclap::Parser;#[derive(Parser)]pubstructCli{/// Amount of time to wait in millis.
/// nvtop --delay 1000 # to run with a delay of 1s.
/// nvtop -d 200 # short flags are supported.
#[clap(short, long, value_name ="MILLISECONDS", default_value_t = 100)]pubdelay:u64,
/// Enable logging to DISK, disabled by default, requires a path that you want to log to, i.e:
/// `nvtop --log ~/Documents/nvtop.log`
#[clap(long, value_name ="Enable Logging")]publog:Option<PathBuf>,
}