src/cli/getopts.rs: improve docs
This commit is contained in:
parent
4de0e142a0
commit
532a69eb04
@ -7,8 +7,9 @@
|
||||
mod environment;
|
||||
pub use environment::*;
|
||||
|
||||
mod getopts;
|
||||
pub use getopts::*;
|
||||
|
||||
mod command;
|
||||
pub use command::*;
|
||||
|
||||
mod getopts;
|
||||
pub use getopts::*;
|
||||
|
@ -52,6 +52,10 @@ fn parse_argument(arg: &str) -> RawArgument {
|
||||
};
|
||||
}
|
||||
|
||||
/// Parses command line arguments using a `Schema`
|
||||
///
|
||||
/// Returns parsed options as json object, together with the
|
||||
/// list of additional command line arguments.
|
||||
pub fn parse_arguments<T: AsRef<str>>(
|
||||
args: &[T],
|
||||
arg_param: &Vec<&'static str>,
|
||||
|
Loading…
Reference in New Issue
Block a user