From 06e37b273ea6f50d4d8cceccd85e613a5840b4c0 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 17 Feb 2020 18:10:15 +0100 Subject: Better name --- crates/ra_cli/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs index 5302f6ed2..f4eb0bd3c 100644 --- a/crates/ra_cli/src/main.rs +++ b/crates/ra_cli/src/main.rs @@ -17,7 +17,7 @@ type Result> = std::result::Result; fn main() -> Result<()> { env_logger::try_init()?; - let command = match Command::from_args()? { + let command = match Command::from_env_args()? { Ok(it) => it, Err(HelpPrinted) => return Ok(()), }; @@ -108,7 +108,7 @@ enum Command { struct HelpPrinted; impl Command { - fn from_args() -> Result> { + fn from_env_args() -> Result> { let mut matches = Arguments::from_env(); let subcommand = matches.subcommand()?.unwrap_or_default(); -- cgit v1.2.3