dusage 0.3.2

💾 A command line disk usage information tool: disk usage (foreground), inodes (background).
Documentation
extern crate clap;
extern crate colored;
extern crate nix;

use autoclap::autoclap;
use clap::Arg;
use clap::Command;

#[cfg(not(tarpaulin_include))]
fn main() {
    let app: clap::Command = autoclap!();

    let args = app
        .arg(
            Arg::new("inodes")
                .long("inodes")
                .short('i')
                .help("Display inode information."),
        )
        .arg(
            Arg::new("copy-friendly")
                .long("copy-friendly")
                .short('c')
                .help("Monocrome-friendly background for easy copy-pasting elsewhere."),
        )
        .try_get_matches()
        .unwrap_or_else(|e| e.exit());

    dusage::driver::Driver::drive(args);
}