From 8d449343827024d3f11d0a4227db765ae6f94ee5 Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Mon, 17 Jul 2023 08:42:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- switch-cmd/src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/switch-cmd/src/main.rs b/switch-cmd/src/main.rs index a7868c0..01e812c 100644 --- a/switch-cmd/src/main.rs +++ b/switch-cmd/src/main.rs @@ -45,19 +45,19 @@ async fn main() { return; } }; - if matches.opt_present("l") { + if matches.opt_present("list") { command::command(command::CommandEnum::List); return; - } else if matches.opt_present("f") { + } else if matches.opt_present("info") { command::command(command::CommandEnum::Info); return; - } else if matches.opt_present("q") { + } else if matches.opt_present("stop") { command::command(command::CommandEnum::Stop); return; - } else if matches.opt_present("r") { + } else if matches.opt_present("route") { command::command(command::CommandEnum::Route); return; - } else if matches.opt_present("z") { + } else if matches.opt_present("all") { command::command(command::CommandEnum::All); return; }