From 49439db38185a9296876520e721ec1d4b9cad189 Mon Sep 17 00:00:00 2001 From: jichenjc Date: Mon, 20 Apr 2020 21:41:25 -0400 Subject: [PATCH] Warn --app and --all-apps coexist --- pkg/odo/cli/component/list.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/odo/cli/component/list.go b/pkg/odo/cli/component/list.go index 1924abef29a..f525f6fd564 100644 --- a/pkg/odo/cli/component/list.go +++ b/pkg/odo/cli/component/list.go @@ -64,6 +64,10 @@ func (lo *ListOptions) Validate() (err error) { var project, app string + if len(lo.Application) != 0 && lo.allAppsFlag { + klog.V(4).Infof("either --app and --all-apps both provided or provided --all-apps in a folder has app, use --all-apps anyway") + } + if !util.CheckKubeConfigExist() { project = lo.LocalConfigInfo.GetProject() app = lo.LocalConfigInfo.GetApplication()