clio 0.2.7

A library for parsing CLI file names
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# clio
clio is a rust library for parsing CLI file names.

It implements the standard unix conventions of when the file name is `-` then
sending the data to stdin/stdout


    // a cat replacement
    fn main() -> clio::Result<()> {
        let args: Vec<_> = std::env::args_os().collect();
        let mut input = clio::Input::new(&args[1])?;
        std::io::copy(&mut input, &mut std::io::stdout())?;
        Ok(())
    }