[go: up one dir, main page]

Function wild::args [] [src]

pub fn args() -> Args

Returns iterator of glob-expanded command-line arguments

On non-Windows platforms it returns env::args() as-is, assuming expansion has already been done by the shell.

On Windows it emulates the glob expansion itself. The iterator will parse arguments incermentally and access the file system as it parses. This allows reading potentially huge lists of filenames, but it's not an atomic snapshot (use .collect() if you need that).