[][src]Macro light_cli::lightcli_adv

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

This macro allows for an easy way to define key value commands while still allowing to define custom error handlers.

Arguments

Remarks

For a simpler way to write a command see the macro lightcli!. This macro makes use of the underlying function parse_data.