From 611f4decb67bda3d5623a383c37fb0ebcf9ab9aa Mon Sep 17 00:00:00 2001 From: Marius Date: Tue, 23 Feb 2016 14:55:19 +0100 Subject: [PATCH] Add some comments for tusd(1) --- cmd/tusd/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/tusd/main.go b/cmd/tusd/main.go index d0cb057..1d69067 100644 --- a/cmd/tusd/main.go +++ b/cmd/tusd/main.go @@ -88,6 +88,8 @@ BuildDate = %s`, basepath, VersionName, GitCommit, BuildDate) } func main() { + // Print version and other information and exit if the -version flag has been + // passed. if version { fmt.Printf("Version: %s\nCommit: %s\nDate: %s\n", VersionName, GitCommit, BuildDate) @@ -95,6 +97,8 @@ func main() { } var store tusd.TerminaterDataStore + // Attempt to use S3 as a backend if the -s3-bucket option has been supplied. + // If not, we default to storing them locally on disk. if s3Bucket == "" { stdout.Printf("Using '%s' as directory storage.\n", dir) if err := os.MkdirAll(dir, os.FileMode(0775)); err != nil {