cmd.Flags().IntVar(&cliFlags.MaxTries,"max-tries",defaultMaxTries,"Number of times to try a publish that fails")
cmd.Flags().BoolVar(&cliFlags.TakeOverExistingChannel,"takeover-existing-channel",false,"If channel exists and we don't own it, take over the channel")
cmd.Flags().IntVar(&cliFlags.Limit,"limit",0,"limit the amount of channels to sync")
cmd.Flags().BoolVar(&cliFlags.SkipSpaceCheck,"skip-space-check",false,"Do not perform free space check on startup")
cmd.Flags().BoolVar(&cliFlags.SyncUpdate,"update",false,"Update previously synced channels instead of syncing new ones")
cmd.Flags().BoolVar(&cliFlags.SingleRun,"run-once",false,"Whether the process should be stopped after one cycle or not")
cmd.Flags().BoolVar(&cliFlags.RemoveDBUnpublished,"remove-db-unpublished",false,"Remove videos from the database that are marked as published but aren't really published")
cmd.Flags().BoolVar(&cliFlags.UpgradeMetadata,"upgrade-metadata",false,"Upgrade videos if they're on the old metadata version")
cmd.Flags().BoolVar(&cliFlags.DisableTransfers,"no-transfers",false,"Skips the transferring process of videos, channels and supports")
cmd.Flags().BoolVar(&cliFlags.QuickSync,"quick",false,"Look up only the last 50 videos from youtube")
cmd.Flags().StringVar(&cliFlags.ChannelID,"channelID","","If specified, only this channel will be synced.")
cmd.Flags().Int64Var(&cliFlags.SyncFrom,"after",time.Unix(0,0).Unix(),"Specify from when to pull jobs [Unix time](Default: 0)")
cmd.Flags().Int64Var(&cliFlags.SyncUntil,"before",time.Now().AddDate(1,0,0).Unix(),"Specify until when to pull jobs [Unix time](Default: current Unix time)")
cmd.Flags().IntVar(&cliFlags.ConcurrentJobs,"concurrent-jobs",1,"how many jobs to process concurrently")
cmd.Flags().IntVar(&cliFlags.VideosLimit,"videos-limit",1000,"how many videos to process per channel")
cmd.Flags().IntVar(&cliFlags.MaxVideoSize,"max-size",2048,"Maximum video size to process (in MB)")