From 9c1b65e712e67f758713fa40a2fe8bfecebf68ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Sun, 11 Apr 2021 01:04:25 +1200 Subject: [PATCH] Deprecate get_args and get_args_from --- src/cli.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index afa1fbf..83232a0 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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) -> &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 { 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(from: I) -> error::Result where I: IntoIterator,