about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_cli/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs
index 5302f6ed223..f4eb0bd3c20 100644
--- a/crates/ra_cli/src/main.rs
+++ b/crates/ra_cli/src/main.rs
@@ -17,7 +17,7 @@ type Result<T, E = Box<dyn Error + Send + Sync>> = std::result::Result<T, E>;
 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<Result<Command, HelpPrinted>> {
+    fn from_env_args() -> Result<Result<Command, HelpPrinted>> {
         let mut matches = Arguments::from_env();
         let subcommand = matches.subcommand()?.unwrap_or_default();