···5151 namePattern := flag.String("name", "", "only clone repos whose name matches the given regexp.")
5252 excludePattern := flag.String("exclude", "", "don't mirror repos whose names match this regexp.")
5353 lastActivityAfter := flag.String("last_activity_after", "", "only mirror repos that have been active since this date (format: 2006-01-02).")
5454+ noArchived := flag.Bool("no_archived", false, "mirror only projects that are not archived")
5555+5456 flag.Parse()
55575658 if *dest == "" {
···98100 log.Fatal(err)
99101 }
100102 opt.LastActivityAfter = gitlab.Time(targetDate)
103103+ }
104104+105105+ if *noArchived {
106106+ opt.Archived = gitlab.Bool(false)
101107 }
102108103109 var gitlabProjects []*gitlab.Project