Skip to content

Commit 56ec589

Browse files
committed
fix -version flag
1 parent 98f3cfd commit 56ec589

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/youtubeuploader/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ func (i *arrayFlags) Set(value string) error {
4545
return nil
4646
}
4747

48+
// this is set at compile time to match git tag
49+
var appVersion string = "unknown"
50+
4851
func main() {
4952

5053
var err error
@@ -73,9 +76,6 @@ func main() {
7376
debug := flag.Bool("debug", false, "turn on verbose log output")
7477
sendFileName := flag.Bool("sendFilename", true, "send original file name to YouTube")
7578

76-
// this is set by compile-time to match git tag
77-
appVersion := "unknown"
78-
7979
flag.Parse()
8080
config := yt.Config{
8181
Filename: *filename,

0 commit comments

Comments
 (0)