From 398615573c22f7d73df5c623b8cd89448f3c3c62 Mon Sep 17 00:00:00 2001 From: Raptorox <70806316+Raptorox@users.noreply.github.com> Date: Tue, 28 Jul 2026 17:25:04 +0200 Subject: [PATCH] make list use Option --- src/command/list.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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");