mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-14 08:11:11 +01:00
Deprecate get_args and get_args_from
This commit is contained in:
parent
7d523dfcf0
commit
9c1b65e712
1 changed files with 3 additions and 1 deletions
|
@ -98,7 +98,7 @@ impl ArgsBuilder {
|
|||
#[deprecated(since = "1.15.0", note = "does nothing. set the log level instead")]
|
||||
pub fn debug(&mut self, _: impl Into<bool>) -> &mut Self {
|
||||
self
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Clear the screen.
|
||||
|
@ -118,10 +118,12 @@ pub fn clear_screen() {
|
|||
let _ = Command::new("tput").arg("reset").status();
|
||||
}
|
||||
|
||||
#[deprecated(since = "1.15.0", note = "this will be removed from the library API. use the builder")]
|
||||
pub fn get_args() -> error::Result<Args> {
|
||||
get_args_impl(None::<&[&str]>)
|
||||
}
|
||||
|
||||
#[deprecated(since = "1.15.0", note = "this will be removed from the library API. use the builder")]
|
||||
pub fn get_args_from<I, T>(from: I) -> error::Result<Args>
|
||||
where
|
||||
I: IntoIterator<Item = T>,
|
||||
|
|
Loading…
Reference in a new issue