1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 19:56:50 +00:00

Fix required argument conflicts in check sub command

This commit is contained in:
Paul-Christian Volkmer 2023-11-09 11:21:24 +01:00
parent a52eb9742e
commit 774b57d78e

View File

@ -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<String>,
@ -120,7 +119,8 @@ pub enum SubCommand {
password: Option<String>,
#[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,
},