From 985e5b030f9b08d519158b4800f6ed56056e1047 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Tue, 16 Mar 2021 22:46:42 -0700 Subject: [PATCH] prune: make revision argument a positional argument (no `-r`) I keep forgetting to pass the `-r`. The command takes only a revision as argument and it doesn't seem likely that we'll want to positional arguments for filenames in the future either. --- src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index 7447a5722..609c50e85 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -357,7 +357,7 @@ fn get_app<'a, 'b>() -> App<'a, 'b> { .arg(rev_arg()); let prune_command = SubCommand::with_name("prune") .about("create an empty successor of a commit") - .arg(rev_arg()); + .arg(Arg::with_name("revision").index(1).required(true)); let new_command = SubCommand::with_name("new") .about("create a new, empty commit") .arg(rev_arg());