From 1e4fb62369376d6f81d4efb453bf8bb68a3dab26 Mon Sep 17 00:00:00 2001 From: fiplox <56274824+fiplox@users.noreply.github.com> Date: Mon, 31 May 2021 22:55:32 +0200 Subject: [PATCH] list taken name only if category flag is given --- 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 91cb3ce..fe40cdf 100644 --- a/src/rnote/app.rs +++ b/src/rnote/app.rs @@ -54,7 +54,11 @@ pub fn make_app() -> App<'static, 'static> { .alias("l") .alias("ls") .about("List all notes or notes from a category.") - .arg(Arg::with_name("name").help("Name of the category.")) + .arg( + Arg::with_name("name") + .help("Name of the category.") + .requires("category"), + ) .arg( Arg::with_name("category") .help("List all notes from a category.")