diff --git a/cmd/dwelling-upload-clean/main.go b/cmd/dwelling-upload-clean/main.go index ad0f89f..8dfee00 100644 --- a/cmd/dwelling-upload-clean/main.go +++ b/cmd/dwelling-upload-clean/main.go @@ -10,10 +10,10 @@ import ( ) var ( - uploadDir *string = flag.String("dir", "/srv/upload", "path to a directory where uploaded files are stored") - expiry *time.Duration = flag.Duration("expiry", 36*time.Hour, "keep files for this much hours") + uploadDir = flag.String("dir", "/srv/upload", "path to a directory where uploaded files are stored") + expiry = flag.Duration("expiry", 36*time.Hour, "keep files for this much hours") - showVersion *bool = flag.Bool("v", false, "show version") + showVersion = flag.Bool("v", false, "show version") ) var version string diff --git a/cmd/dwelling-upload/main.go b/cmd/dwelling-upload/main.go index 0dd8acc..e827545 100644 --- a/cmd/dwelling-upload/main.go +++ b/cmd/dwelling-upload/main.go @@ -20,11 +20,11 @@ import ( ) var ( - listenAddress *string = flag.String("listen", "/var/run/dwelling-upload/sock", "listen address (ip:port|unix_path)") - uploadDir *string = flag.String("dir", "/srv/upload", "directory where uploaded files are stored") - expiry *int = flag.Int("expiry", 36, "keep files for this much hours") - storageSize *int64 = flag.Int64("storage", 102400, "storage size in MiB for uploads") - fileSize *int64 = flag.Int64("file", 128, "max. size in MiB for files") + listenAddress = flag.String("listen", "/var/run/dwelling-upload/sock", "listen address (ip:port|unix_path)") + uploadDir = flag.String("dir", "/srv/upload", "directory where uploaded files are stored") + expiry = flag.Int("expiry", 36, "keep files for this much hours") + storageSize = flag.Int64("storage", 102400, "storage size in MiB for uploads") + fileSize = flag.Int64("file", 128, "max. size in MiB for files") showVersion *bool = flag.Bool("v", false, "show version") )