changeset 73:1939d3b5722d

...
author AnaTofuZ <anatofuz@gmail.com>
date Sun, 20 Dec 2020 15:42:06 +0900
parents 28dcbf278912
children 895e995a5ebd
files src/main.rs
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.rs	Sun Dec 20 15:38:43 2020 +0900
+++ b/src/main.rs	Sun Dec 20 15:42:06 2020 +0900
@@ -40,7 +40,7 @@
 
     /// define the domain in which the gdb port is opened from the template XML file
     #[clap(short, long)]
-    gdb: Option<bool>,
+    gdb: bool,
 }
 
 /// domain information in XML
@@ -145,7 +145,7 @@
                 command::define_from_template(&userdetail, &arg.name, &template);
                 return;
             }
-            if let Some(_) = arg.gdb {
+            if arg.gdb {
                 command::define_gdb(&userdetail, &arg.name);
                 return;
             }