diff options
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} |
