ok/jj
1
0
Fork 0
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:
Martin von Zweigbergk 2021-03-25 23:47:12 -07:00
parent 1941801055
commit 72195f3261

View file

@ -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());