cmder 0.6.1

A simple, lightweight, command line argument parser for rust codebases
Documentation
use cmder::{construct_theme, Color, Program, Setting, Theme};

fn main() {
    let mut program = Program::new();

    program
        .version("0.1.0")
        .author("vndaba")
        .description("Custom theme example");

    program
        .argument("<text...>", "Some dummy text")
        .action(|m| {
            dbg!(m);
        });

    // You can use the `construct_theme` macro and play around with the colors
    use Color::*;
    program.set(Setting::DefineCustomTheme(construct_theme!(
        Green, Magenta, Blue, Red, White
    )));

    // You could also construct the theme manually
    let theme = Theme {
        keyword: Green,
        headline: Magenta,
        description: Blue,
        error: Red,
        other: White,
    };
    program.set(Setting::DefineCustomTheme(theme));
    // This method will achieve exactly the same outcome as the macro expression above

    program.parse();
}