list taken name only if category flag is given
This commit is contained in:
parent
536624480a
commit
1e4fb62369
@ -54,7 +54,11 @@ pub fn make_app() -> App<'static, 'static> {
|
|||||||
.alias("l")
|
.alias("l")
|
||||||
.alias("ls")
|
.alias("ls")
|
||||||
.about("List all notes or notes from a category.")
|
.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(
|
||||||
Arg::with_name("category")
|
Arg::with_name("category")
|
||||||
.help("List all notes from a category.")
|
.help("List all notes from a category.")
|
||||||
|
Loading…
Reference in New Issue
Block a user