thank me later (closed #1)

main
Michal 2 years ago committed by GitHub
parent c1f9b728b7
commit f883eb2672

@ -61,10 +61,10 @@ fn main() {
.help("Excludes packages from given operation"),
)
.arg(
Arg::with_name("regen")
.short("r")
.long("regen")
.help("Regenerates repository after building give package(s)"),
Arg::with_name("no-regen")
.short("n")
.long("no-regen")
.help("Does not regenerate repository after building given package(s)"),
),
)
.subcommand(

@ -68,10 +68,10 @@ pub fn build(matches: &ArgMatches) {
generate();
}
if matches
if !matches
.subcommand_matches("build")
.unwrap()
.is_present("regen")
.is_present("no-regen")
{
repository::generate();
}

Loading…
Cancel
Save