git: make arguments of jj git push named flags instead of positional

This way we can have a default for the remote, which I set to
"origin".
This commit is contained in:
Martin von Zweigbergk 2020-12-31 23:25:57 -08:00
parent 634a04e234
commit d741abf5a2

View file

@ -437,13 +437,13 @@ fn get_app<'a, 'b>() -> App<'a, 'b> {
.arg( .arg(
Arg::with_name("remote") Arg::with_name("remote")
.long("remote") .long("remote")
.index(1) .takes_value(true)
.required(true), .default_value("origin"),
) )
.arg( .arg(
Arg::with_name("branch") Arg::with_name("branch")
.long("branch") .long("branch")
.index(2) .takes_value(true)
.required(true), .required(true),
), ),
) )