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"), .help("Excludes packages from given operation"),
) )
.arg( .arg(
Arg::with_name("regen") Arg::with_name("no-regen")
.short("r") .short("n")
.long("regen") .long("no-regen")
.help("Regenerates repository after building give package(s)"), .help("Does not regenerate repository after building given package(s)"),
), ),
) )
.subcommand( .subcommand(

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

Loading…
Cancel
Save