From 774b57d78e08c22d89fb474b59d54edcec1d560f Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Thu, 9 Nov 2023 11:21:24 +0100 Subject: [PATCH] Fix required argument conflicts in check sub command --- src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 8f07092..f447721 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -107,7 +107,6 @@ pub enum SubCommand { strict: bool, }, #[command(about = "Überprüfe OSC-Datei auf bekannte Problemen")] - #[group(multiple = false)] Check { #[arg(help = "Die zu prüfende Datei", group = "check-file", required = true)] file: Option, @@ -120,7 +119,8 @@ pub enum SubCommand { password: Option, #[arg( long = "list", - help = "Prüfe nicht und zeige Liste mit Checks auf bekannte Problemen" + help = "Prüfe nicht und zeige Liste mit Checks auf bekannte Problemen", + conflicts_with = "check-file" )] list: bool, },