diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2018-09-15 18:17:31 +0200 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2018-09-15 18:17:31 +0200 |
| commit | f82c6ff724d6e56052c40f409be785b796eca2ab (patch) | |
| tree | f02afeacee8e37c775de92cb78efff92b0a1bcc2 /main.go | |
| parent | 986ba6d4cd6926daee8e7342ebb17c9ce1dc2637 (diff) | |
Load new DB with flag fully implemented0.2.7
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -62,7 +62,7 @@ func init() { "Test Some Functions") flag.StringVar(&filename, "file", - "~/.mytimes.db", + "none", "Open a different Database than specified in Configuration") // CUSTOMIZE USAGE flag.Usage = func() { @@ -94,6 +94,10 @@ func main() { // } initConf() dbname = config.Database + + if filename != "none" { + dbname = filename + } /* if len(flag.Args())>0 { aar := flag.Args() @@ -118,8 +122,9 @@ func main() { */ if test { - fmt.Println(getGitTag()) - fmt.Println("Nothing to test") + fmt.Println(Round(12.55,0.5),Round(12.55,0.1),Round(12.55,1),Round(12.55,5)) + //fmt.Println(getGitTag()) + //fmt.Println("Nothing to test") //tmpltest() //newBill(1) //c := []int{2,3} |
