pub struct Command {
pub prog: &'static str,
pub module: &'static str,
pub help: &'static str,
pub arguments: &'static [Argument],
pub required_groups: &'static [usize],
}Expand description
A command line declared with argparse: its prog, its module (for
program_text), its help text as argparse prints it, and its arguments.
Fields§
§prog: &'static strThe prog of the parser, e.g. "fonttools ttLib.scaleUpem".
module: &'static strThe module, without fontTools., e.g. "ttLib.scaleUpem".
help: &'static strparser.format_help(); its usage is the text before the first empty
line.
arguments: &'static [Argument]The arguments.
required_groups: &'static [usize]The mutually exclusive groups with required=True.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl Move for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more