admin: new argument --rapidimport to speed up the import but don't ensure consistency

This commit is contained in:
nemunaire 2016-12-30 20:23:19 +01:00
commit 4cea4a4aa0
2 changed files with 9 additions and 0 deletions

View file

@ -30,6 +30,7 @@ func main() {
"Base directory where found challenges files, cloud part")
flag.StringVar(&api.CloudUsername, "clouduser", "fic", "Username used to sync")
flag.StringVar(&api.CloudPassword, "cloudpass", "", "Password used to sync")
flag.BoolVar(&api.RapidImport, "rapidimport", false, "Don't try to reimport an existing file")
flag.Parse()
log.SetPrefix("[admin] ")