From 1e4b9144d5dce83dda9adcfe9b807dfc371556e0 Mon Sep 17 00:00:00 2001 From: Volodymyr Patuta <90917-fiplox@users.noreply.framagit.org> Date: Sat, 12 Dec 2020 15:57:08 +0100 Subject: [PATCH] added conflicts to args --- src/rnote/app.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rnote/app.rs b/src/rnote/app.rs index 9e6ba32..da15f8f 100644 --- a/src/rnote/app.rs +++ b/src/rnote/app.rs @@ -31,6 +31,7 @@ pub fn make_app() -> App<'static, 'static> { Arg::with_name("date") .help("Delete all notes created at given date.") .short("d") + .conflicts_with("header") .long("date"), ), ) @@ -60,6 +61,7 @@ pub fn make_app() -> App<'static, 'static> { Arg::with_name("word") .help("Search by word.") .short("w") + .conflicts_with("header") .long("word"), ) .arg(Arg::with_name("header").help("Name of the note.")), @@ -70,13 +72,15 @@ pub fn make_app() -> App<'static, 'static> { Arg::with_name("all") .help("Show all notes.") .short("a") + .conflicts_with("header") .long("all"), ) .arg( Arg::with_name("category") .help("Show all notes from a category/date") .short("c") - .long("category"), + .long("category") + .conflicts_with("header"), ) .arg(Arg::with_name("header").help("Name of the note.")), )