ok/jj
1
0
Fork 0
forked from mirrors/jj

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::with_name("remote")
.long("remote")
.index(1)
.required(true),
.takes_value(true)
.default_value("origin"),
)
.arg(
Arg::with_name("branch")
.long("branch")
.index(2)
.takes_value(true)
.required(true),
),
)