Skip to content

Commit

Permalink
fix -version flag
Browse files Browse the repository at this point in the history
  • Loading branch information
porjo committed Nov 20, 2024
1 parent 98f3cfd commit 56ec589
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/youtubeuploader/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func (i *arrayFlags) Set(value string) error {
return nil
}

// this is set at compile time to match git tag
var appVersion string = "unknown"

func main() {

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

// this is set by compile-time to match git tag
appVersion := "unknown"

flag.Parse()
config := yt.Config{
Filename: *filename,
Expand Down

0 comments on commit 56ec589

Please sign in to comment.