From 219e4f7cdf4e0d6f58dfcae0ca1a482f37f3b4cd Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 20 Jul 2026 20:53:31 +0900 Subject: [PATCH] ruptime: let `--json` be mutexed with sorting flags --- src/bin/ruptime.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/ruptime.rs b/src/bin/ruptime.rs index bc4f511..eebef72 100644 --- a/src/bin/ruptime.rs +++ b/src/bin/ruptime.rs @@ -52,7 +52,11 @@ pub struct Args { old: bool, /// Output in JSON format - #[arg(long, short)] + #[arg( + long, + short, + conflicts_with_all = ["load", "reverse", "time", "users"] + )] json: bool, /// Generate shell completion scripts for the specified shell