flag.StringVar(&Flags.HttpHost,"host","0.0.0.0","Host to bind HTTP server to")
flag.StringVar(&Flags.HttpPort,"port","1080","Port to bind HTTP server to")
flag.Int64Var(&Flags.MaxSize,"max-size",0,"Maximum size of a single upload in bytes")
flag.StringVar(&Flags.UploadDir,"dir","./data","Directory to store uploads in")
flag.Int64Var(&Flags.StoreSize,"store-size",0,"Size of space allowed for storage")
flag.StringVar(&Flags.Basepath,"base-path","/files/","Basepath of the HTTP server")
flag.Int64Var(&Flags.Timeout,"timeout",30*1000,"Read timeout for connections in milliseconds. A zero value means that reads will not timeout")
flag.StringVar(&Flags.S3Bucket,"s3-bucket","","Use AWS S3 with this bucket as storage backend (requires the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_REGION environment variables to be set)")