aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cli/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_cli/src/main.rs')
-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 5302f6ed2..f4eb0bd3c 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>;
17fn main() -> Result<()> { 17fn main() -> Result<()> {
18 env_logger::try_init()?; 18 env_logger::try_init()?;
19 19
20 let command = match Command::from_args()? { 20 let command = match Command::from_env_args()? {
21 Ok(it) => it, 21 Ok(it) => it,
22 Err(HelpPrinted) => return Ok(()), 22 Err(HelpPrinted) => return Ok(()),
23 }; 23 };
@@ -108,7 +108,7 @@ enum Command {
108struct HelpPrinted; 108struct HelpPrinted;
109 109
110impl Command { 110impl Command {
111 fn from_args() -> Result<Result<Command, HelpPrinted>> { 111 fn from_env_args() -> Result<Result<Command, HelpPrinted>> {
112 let mut matches = Arguments::from_env(); 112 let mut matches = Arguments::from_env();
113 let subcommand = matches.subcommand()?.unwrap_or_default(); 113 let subcommand = matches.subcommand()?.unwrap_or_default();
114 114