@ -61,10 +61,10 @@ fn main() {
.help("Excludes packages from given operation"),
)
.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(
@ -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();