[−][src]Struct abscissa_core::command::Usage
Presenter for usage information for a particular Command
Fields
package_name: String
Package name
package_version: Version
Package version
Package authors
package_description: Option<String>
Package description
args: Vec<Argument>
Command-line options
subcommands: Vec<Subcommand>
Subcommands
Methods
impl Usage
[src]
pub fn for_command<C>() -> Self where
C: Command,
[src]
C: Command,
Build usage information for a particular command
pub fn print_subcommand(&self, args: &[String]) -> Result<(), Error>
[src]
Print usage for a particular subcommand
pub fn print_subcommand_and_exit(&self, args: &[String]) -> !
[src]
Print usage for a particular subcommand and exit
pub fn print_info(&self) -> Result<(), Error>
[src]
Print program and usage information
pub fn print_usage(&self) -> Result<(), Error>
[src]
Print usage information only
Trait Implementations
Auto Trait Implementations
impl Sync for Usage
impl Unpin for Usage
impl Send for Usage
impl UnwindSafe for Usage
impl RefUnwindSafe for Usage
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,