Trait cargho::FromArgs [−][src]
pub trait FromArgs: Sized { fn from_args(
command_name: &[&str],
args: &[&str]
) -> Result<Self, EarlyExit>; }
Expand description
Types which can be constructed from a set of commandline arguments.
Required methods
Construct the type from an input set of arguments.
The first argument command_name
is the identifier for the current
command, treating each segment as space-separated. This is to be
used in the output of --help
, --version
, and similar flags.