1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2025-07-01 19:58:37 -04:00

cmd/ofx: golint

This commit is contained in:
2017-04-16 20:50:06 -04:00
parent 33c7ad463c
commit 94f49640b4
11 changed files with 23 additions and 25 deletions

View File

@ -6,7 +6,7 @@ import (
"strconv"
)
var commands = []Command{
var commands = []command{
getAccountsCommand,
downloadCommand,
ccDownloadCommand,
@ -39,17 +39,17 @@ The commands are:`)
}
}
func runCmd(c *Command) {
func runCmd(c *command) {
err := c.Flags.Parse(os.Args[2:])
if err != nil {
fmt.Printf("Error parsing flags: %s\n", err)
c.Usage()
c.usage()
os.Exit(1)
}
if !c.CheckFlags() {
fmt.Println()
c.Usage()
c.usage()
os.Exit(1)
}