[][src]Macro light_cli::lightcli

macro_rules! lightcli {
    ($cli:expr, $cl_out:expr, $cmd:ident, $key:ident, $val:ident, [ 
        $(
            $cmdv:pat => [
                $( $keyv:pat => $action:expr ),*
            ] => $done:expr
        );*
    ]) => { ... };
}

This macro allows for an easy way to define key value commands.

Arguments

Remarks

For a command that doesn't use the output and allows for custom error handling see the macro lightcli_adv!. This macro makes use of the underlying function parse_data.