Skip to content

Commit

Permalink
Warn about unhandled arguments (#2641)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed May 9, 2022
1 parent ef7014c commit 22d3d7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/nginx-ingress/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ func main() {
}
glog.Infof("Starting NGINX Ingress Controller %v PlusFlag=%v", versionInfo, *nginxPlus)

unparsed := flag.Args()
if unparsed != nil {
glog.Warningf("Ignoring unhandled arguments: %v", unparsed)
}

if startupCheckFn != nil {
err := startupCheckFn()
if err != nil {
Expand Down

0 comments on commit 22d3d7f

Please sign in to comment.