pub struct Args { /* private fields */ }
Expand description
All currently present command line parameters, use it for unit tests and manual parsing
The easiest way to create Args
is by using it’s From
instance.
let parser = short('f')
.switch()
.to_options();
let value = parser
.run_inner(Args::from(&["-f"]))
.unwrap();
assert!(value);
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Args
impl !Send for Args
impl !Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more