Skip to content
Permalink
Browse files

Improve flag help text for pwfile, move start print statements after …

…loading db
  • Loading branch information...
Raggaer committed Feb 21, 2019
1 parent a36861f commit b14f9460ffe7cb6077c8f3d1a130690556f3baae
Showing with 6 additions and 6 deletions.
  1. +6 −6 main.go
12 main.go
@@ -23,14 +23,9 @@ var (
)

func main() {
fmt.Println("gokpcli is ready for operation")
fmt.Println("Type 'help' for a description of available commands")
fmt.Println("Type 'help <command>' for details on individual commands")
fmt.Print(waitCommandMessage)

// Parse application flags
flag.StringVar(&databaseLocation, "db", "", "KeePass2 database file location")
flag.StringVar(&passwordFileLocation, "pwfile", "", "File that stores your KeePass2 database")
flag.StringVar(&passwordFileLocation, "pwfile", "", "File that stores your KeePass2 database password")
flag.Parse()

// Open database file
@@ -40,6 +35,11 @@ func main() {
return
}

fmt.Println("gokpcli is ready for operation")
fmt.Println("Type 'help' for a description of available commands")
fmt.Println("Type 'help <command>' for details on individual commands")
fmt.Print(waitCommandMessage)

// Register channel to get signal notifications
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)

0 comments on commit b14f946

Please sign in to comment.
You can’t perform that action at this time.