[src]

Module std::rt::args

Global storage for command line arguments

The current incarnation of the Rust runtime expects for the processes argc and argv arguments to be stored in a globally-accessible location for use by the os module.

Only valid to call on linux. Mac and Windows use syscalls to discover the command line arguments.

FIXME #7756: Would be nice for this to not exist. FIXME #7756: This has a lot of C glue for lack of globals.

cleanup

One-time global cleanup.

clone

Make a clone of the global arguments.

init

One-time global initialization.

put

Give the global arguments to global storage.

take

Take the global arguments from global storage.