clap-nested 0.2.0

A convenient `clap` setup for multi-level CLI commands.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[macro_export]
macro_rules! file_stem {
    () => {
        ::std::path::Path::new(file!())
            .file_stem()
            .unwrap()
            .to_str()
            .unwrap()
    };
}

#[test]
fn file_stem() {
    assert!(file_stem!() == "macros");
}