mod-cli 0.6.4

A fully customizable, feature-rich CLI framework for Rust. Define commands, prefixes, styled output, and more—built for flexibility and speed.
Documentation
use modcli::output::{hook, print};
use modcli::ModCli;

fn main() {
    // Grab CLI args
    let args: Vec<String> = std::env::args().skip(1).collect();

    // No args? status message and exit success
    if args.is_empty() {
        print::status("⚠️ No command given. Try `help`.");
        return;
    }

    // Create and configure CLI
    let mut cli = ModCli::new();
    cli.set_prefix("mod");

    // Enforce strict argument mode (1 command only)
    if args.len() > 1 {
        hook::warn("Too many arguments; expected a single command.");
    }

    // Now safely run the CLI with args
    cli.run(args);
}