Skip to main content

tap/engine/
cmdinfo.rs

1use crate::engine::structs::CmdInfo;
2
3impl<'a, H> CmdInfo<'a, H> {
4    pub fn new(
5        handler: H,
6        required: Vec<&'a str>,
7        optional: Vec<&'a str>,
8        unlimited: bool,
9        docs: &'static str,
10    ) -> Self {
11        Self {
12            docs: docs,
13            handler,
14            required,
15            optional,
16            unlimited,
17        }
18    }
19}