Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeCla committed Apr 13, 2023
1 parent fe44903 commit e75f779
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ type flags struct {
}

func parseFlags() flags {
output := flag.String("output", "", "output file")
defaultCredential := os.Getenv("GOOGLE_APPLICATION_CREDENTIALS")
output := flag.String("output", "", "output file (default: stdout)")
help := flag.Bool("help", false, "show help")
credential := flag.String("credential", "~/.config/gcloud/application_default_credentials.json", "gcp credential file")
credential := flag.String("credential", defaultCredential, "gcp credential file")

flag.Parse()
flag.Usage = func() {
Expand Down

0 comments on commit e75f779

Please sign in to comment.