Skip to content

Commit

Permalink
change Flags to PersistentFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
faycheng committed Mar 24, 2018
1 parent 979666b commit ac9d789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func main() {

setupFlags(cmdServe)
parseFlags(cmdServe, os.Args[1:])
if err := loadDaemonFile(&cfg, cmdServe.Flags()); err != nil {
if err := loadDaemonFile(&cfg, cmdServe.PersistentFlags()); err != nil {
logrus.Errorf("failed to load daemon file: %s", err)
os.Exit(1)
}
Expand Down

0 comments on commit ac9d789

Please sign in to comment.