diff options
author | Aleksey Kladov <[email protected]> | 2020-02-17 17:10:15 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-17 17:10:15 +0000 |
commit | 06e37b273ea6f50d4d8cceccd85e613a5840b4c0 (patch) | |
tree | 0a5883daca8ee09000fb83156d1030dc802e8e65 /crates/ra_cli/src | |
parent | 3ef916061b208ce6f746562bc732b4a437639505 (diff) |
Better name
Diffstat (limited to 'crates/ra_cli/src')
-rw-r--r-- | crates/ra_cli/src/main.rs | 4 |
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>; | |||
17 | fn main() -> Result<()> { | 17 | fn 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 { | |||
108 | struct HelpPrinted; | 108 | struct HelpPrinted; |
109 | 109 | ||
110 | impl Command { | 110 | impl 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 | ||