1 2 3 4 5 6 7 8 9 10 11 12
//! Macros for convenient command creation. /// Macro to create a new command. #[macro_export] macro_rules! cmd { ($program:expr) => { $crate::Cmd::new($program) }; ($program:expr, $($arg:expr),* $(,)?) => { $crate::Cmd::new($program)$(.arg($arg))* }; }