clientele/
args.rs

1// This is free and unencumbered software released into the public domain.
2
3extern crate std;
4
5use std::{ffi::OsString, vec::Vec};
6
7pub fn args_os() -> Result<Vec<OsString>, std::io::Error> {
8    #[cfg(not(feature = "wild"))]
9    let args = std::env::args_os();
10    #[cfg(feature = "wild")]
11    let args = wild::args_os();
12
13    #[cfg(not(feature = "argfile"))]
14    return Ok(args.collect());
15    #[cfg(feature = "argfile")]
16    return argfile::expand_args_from(args, argfile::parse_fromfile, argfile::PREFIX);
17}