clientele 0.3.8

Clientele packages `clap`, `camino`, `dotenvy`, `wild`, `argfile`, and `getenv` into one dependency.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This is free and unencumbered software released into the public domain.

extern crate std;

use std::{ffi::OsString, vec::Vec};

pub fn args_os() -> Result<Vec<OsString>, std::io::Error> {
    #[cfg(not(feature = "wild"))]
    let args = std::env::args_os();
    #[cfg(feature = "wild")]
    let args = wild::args_os();

    #[cfg(not(feature = "argfile"))]
    return Ok(args.collect());
    #[cfg(feature = "argfile")]
    return argfile::expand_args_from(args, argfile::parse_fromfile, argfile::PREFIX);
}