cmdlib: be able to parse --myrouter-port argument and ignore it

Summary: also includes a fix for blobimportjob passing an empty argument to blobimport when was not used

Reviewed By: farnz

Differential Revision: D10298965

fbshipit-source-id: 1e9475c53a7e0b7ea211cc8fbd2c327327b66c65
This commit is contained in:
Lukas Piatkowski 2018-10-10 08:19:27 -07:00 committed by Facebook Github Bot
parent 370c9f9bd9
commit 177bbc024e

View File

@ -89,6 +89,12 @@ impl MononokeApp {
.default_value("0")
.help("numeric ID of repository")
)
.arg(
Arg::with_name("myrouter-port")
.long("myrouter-port")
.value_name("PORT")
.help("port for local myrouter instance")
)
.arg(
Arg::with_name("log-style")
.short("l")
@ -444,7 +450,7 @@ fn open_repo_internal<'a>(
blobrepo,
&Default::default(),
Arc::new(hook_manager),
None
None,
))
}