From ab57584281a561c021c4a29707f155c50a4af21d Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Thu, 25 Feb 2021 23:34:00 -0800 Subject: [PATCH] cli: allow -R and --at-op anywhere in command line --- src/commands.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands.rs b/src/commands.rs index 669bdac36..8f66b30ef 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -543,6 +543,7 @@ fn get_app<'a, 'b>() -> App<'a, 'b> { Arg::with_name("repository") .long("repository") .short("R") + .global(true) .takes_value(true) .default_value("."), ) @@ -550,6 +551,7 @@ fn get_app<'a, 'b>() -> App<'a, 'b> { Arg::with_name("at_op") .long("at-operation") .alias("at-op") + .global(true) .takes_value(true), ) .subcommand(init_command)