Skip to content
Snippets Groups Projects
Commit 9d66d69d authored by Erick Hitter's avatar Erick Hitter
Browse files

Cannot parse flags in init

parent 654dc412
Branches
No related tags found
1 merge request!5Add go.mod
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
......@@ -42,7 +42,7 @@ var (
client *godo.Client
)
func init() {
func initConfig() {
flag.StringVar(&configPath, "config", "./config.json", "Path to configuration file")
flag.Parse()
......@@ -77,6 +77,7 @@ func init() {
}
func main() {
initConfig()
authenticate()
checkAPI()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment