toiletcli-0.7.0 has been yanked.
toiletcli
A tiny framework for command line applications, including a command line argument parser.
Complete overview can be found in the documentation for each module.
Modules can be disabled/enabled via features:
[]
= ["flags", "colors", "escapes"]
Examples
Flags
//! Command line argument parsing.
use args;
use flags;
use *;
let mut color: String;
let mut show_help: bool;
let mut flags = flags!;
let args = parse_flags;
Colors
//! Convenient ANSI terminal colors and styles.
use Color;
println!;
let weird_style = new
.foreground
.background
.add_style
.underline_color
.underline_style
.build;
println!;
Escapes
//! Most common escapes to manipulate terminals.
use *;
println!;
// This is a 'bird' that will be replaced!
println!;
// This is a 'cat' that will be replaced too!
print!;
// Look at the title :3
Common
//! Common functions.
use common;
let path = "toilet/bin/program";
let name = name_from_path;
assert_eq!;