From f6b92ee8bdd84c140afb7103528fb142b786e594 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Wed, 22 Feb 2017 15:47:26 +1030 Subject: [PATCH] Show github link in --version --- .gitignore | 23 +++-------------------- dau.go | 4 ++-- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/.gitignore b/.gitignore index ae2ad53..88f7131 100644 --- a/.gitignore +++ b/.gitignore @@ -1,20 +1,3 @@ -/blib/ -/.build/ -_build/ -cover_db/ -inc/ -Build -!Build/ -Build.bat -.last_cover_stats -/Makefile -/Makefile.old -/MANIFEST.bak -/META.yml -/META.json -/MYMETA.* -nytprof.out -/pm_to_blib -*.o -*.bs -/_eumm/ +dau-linux +dau-mac +dau-win.exe diff --git a/dau.go b/dau.go index 6cd2200..7126630 100644 --- a/dau.go +++ b/dau.go @@ -16,7 +16,7 @@ import ( "io/ioutil" ) -var current_version = "0.4" +const current_version = "0.4" var last_check = time.Now() var new_last_check = time.Now() @@ -93,7 +93,6 @@ func check_updates() { func parse_options() (webhook_url string, path string, watch int, username string) { // Declare the flags to be used - // helpFlag := getopt.Bool('h', "display help") webhookFlag := getopt.StringLong("webhook", 'w', "", "discord webhook URL") pathFlag := getopt.StringLong("directory", 'd', "", "directory to scan, optional, defaults to current directory") watchFlag := getopt.Int16Long ("watch", 's', 10, "time between scans") @@ -110,6 +109,7 @@ func parse_options() (webhook_url string, path string, watch int, username strin } if (*versionFlag) { + fmt.Println("dau - https://github.com/tardisx/discord-auto-upload") fmt.Printf("Version: %s\n", current_version) os.Exit(0) }