Function arg_input::argf
[−]
[src]
pub fn argf() -> Result<Box<Read>, InputError>
Act like input()
, but automatically pull arguments
from the command line.
Assumes that the command line arguments are undisturbed (i.e., the first
argument is the executable name) and that all other arguments should be
treated like file names. If this is not the case and you need more fine-grained
control (e.g. you're using docopt
to parse command-line arguments instead),
use input()
.