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
...@@ -42,7 +42,7 @@ var ( ...@@ -42,7 +42,7 @@ var (
client *godo.Client client *godo.Client
) )
func init() { func initConfig() {
flag.StringVar(&configPath, "config", "./config.json", "Path to configuration file") flag.StringVar(&configPath, "config", "./config.json", "Path to configuration file")
flag.Parse() flag.Parse()
...@@ -77,6 +77,7 @@ func init() { ...@@ -77,6 +77,7 @@ func init() {
} }
func main() { func main() {
initConfig()
authenticate() authenticate()
checkAPI() checkAPI()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment