diff --git a/bin/domain/imag-notes/src/ui.rs b/bin/domain/imag-notes/src/ui.rs index f9ae7390..1b785491 100644 --- a/bin/domain/imag-notes/src/ui.rs +++ b/bin/domain/imag-notes/src/ui.rs @@ -24,27 +24,25 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .subcommand(SubCommand::with_name("create") .about("Create a note") .version("0.1") - .arg(Arg::with_name("name") - .long("name") - .short("n") - .takes_value(true) - .required(true) - .help("Create Note with this name") - .value_name("NAME")) .arg(Arg::with_name("edit") .long("edit") .short("e") .takes_value(false) .required(false) .help("Edit after creating")) + .arg(Arg::with_name("name") + .index(1) + .takes_value(true) + .required(true) + .help("Create Note with this name") + .value_name("NAME")) ) .subcommand(SubCommand::with_name("delete") .about("Delete a Note") .version("0.1") .arg(Arg::with_name("name") - .long("name") - .short("n") + .index(1) .takes_value(true) .required(true) .help("Delete Note with this name") @@ -54,8 +52,7 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .about("Edit a Note") .version("0.1") .arg(Arg::with_name("name") - .long("name") - .short("n") + .index(1) .takes_value(true) .required(true) .help("Edit Note with this name") diff --git a/doc/src/09020-changelog.md b/doc/src/09020-changelog.md index 2a8085e3..c7b83d15 100644 --- a/doc/src/09020-changelog.md +++ b/doc/src/09020-changelog.md @@ -59,6 +59,7 @@ This section contains the changelog from the last release to the next release. * `imag-timetrack track` is now able to parse "now", date-only start/stop dates and date-time start/stop times. * `libimagnotes` does not longer wrap store types but extend them. + * `imag-notes` uses positional arguments now. * Stats