Crate arg_input [−] [src]
Inspired by Ruby's ARGF
.
Treat files and stdin
as if they were a big long concatenated stream.
argf()
will pull input from your command line arguments,
no frills, no questions asked, and argf_lines()
will
give you an iterator over all lines of command line input.
argf()
and argf_lines()
assume that the command line arguments contain only
file arguments. If you need a little more control (for example, you're using docopt
to parse command line arguments instead), use input()
or
input_lines()
Structs
FailReadFileError | |
InputError |
Functions
argf |
Act like |
argf_lines |
Act like |
input |
Return a |
input_lines |
Return an iterator over all lines of input. |
Type Definitions
Lines |