summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2018-09-15 18:17:31 +0200
committerNikolaus Gotsche <n@softwarefools.com>2018-09-15 18:17:31 +0200
commitf82c6ff724d6e56052c40f409be785b796eca2ab (patch)
treef02afeacee8e37c775de92cb78efff92b0a1bcc2 /main.go
parent986ba6d4cd6926daee8e7342ebb17c9ce1dc2637 (diff)
Load new DB with flag fully implemented0.2.7
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/main.go b/main.go
index bcfe22b..c34a829 100644
--- a/main.go
+++ b/main.go
@@ -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}