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.
This commit is contained in:
Martin von Zweigbergk 2021-03-16 22:46:42 -07:00
parent 8980f1acbe
commit 985e5b030f

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