diff --git a/src/command/list.rs b/src/command/list.rs index 23dad11..fed9ccd 100644 --- a/src/command/list.rs +++ b/src/command/list.rs @@ -1,16 +1,16 @@ #[derive(Default)] pub struct ListCommand { - uuids: bool + uuids: Option } impl ListCommand { pub fn uuids(mut self) -> Self { - self.uuids = true; + self.uuids = Some(true); self } pub fn build(self) -> super::Command { - let uuids = self.uuids; + let uuids = self.uuids.unwrap_or(false); let mut s = format!("list"); if uuids { s.push_str(" uuids");