[][src]Trait entrance::Arguments

pub trait Arguments: Sized {
    fn parse<I: Iterator<Item = String>>(args: I) -> Result<Self>;
fn spec() -> &'static [Arg]; }

A trait for parsing and containing arguments.

Example

use entrance::Arguments;
use std::path::PathBuf;

#[derive(Arguments)]
struct Args {
    #[description = "The number of lines"]
    num: f64,

    #[description = "Path to a file"]
    file: PathBuf,
}

Required methods

fn parse<I: Iterator<Item = String>>(args: I) -> Result<Self>

fn spec() -> &'static [Arg]

This associated function is for HelpDisplay.

Loading content...

Implementations on Foreign Types

impl Arguments for ()[src]

Loading content...

Implementors

Loading content...