pub struct Arg(/* private fields */);
Expand description
A single, raw argument passed in from the command line.
This type is used in two ways: to indicate long command line options, and to
indicate arguments themselves. For instance, given
--target foo --path=bar input.txt
, target
, foo
, path
, bar
, and
input.txt
would all be passed as Arg
values to the relevant functions.
An Arg
internally is just a byte slice, since that’s what the OS gives us.
Callers can manually turn it into a str
with from_utf8
,
and from there parse it however they need.