forked from mirrors/jj
prune: default argument to "@", fixing regression
When I recently changed the revision argument from being passed to `-r` to being a positional argument, I accidentally made it required. Let's restore the default of "@".
This commit is contained in:
parent
1941801055
commit
72195f3261
1 changed files with 1 additions and 1 deletions
|
@ -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(Arg::with_name("revision").index(1).required(true));
|
||||
.arg(Arg::with_name("revision").index(1).default_value("@"));
|
||||
let new_command = SubCommand::with_name("new")
|
||||
.about("create a new, empty commit")
|
||||
.arg(rev_arg());
|
||||
|
|
Loading…
Reference in a new issue