mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
resolved bug in the way componentCmd was added FlagSet (#1000)
This commit is contained in:
committed by
Charlie Drage
parent
69e4f8adda
commit
e364c3598c
@@ -2,6 +2,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"github.com/redhat-developer/odo/pkg/component"
|
||||
"github.com/redhat-developer/odo/pkg/odo/genericclioptions"
|
||||
@@ -77,7 +78,7 @@ func init() {
|
||||
componentGetCmd.Flags().BoolVarP(&componentShortFlag, "short", "q", false, "If true, display only the component name")
|
||||
|
||||
// add flags from 'get' to component command
|
||||
componentCmd.Flags().AddFlagSet(applicationGetCmd.Flags())
|
||||
componentCmd.Flags().AddFlagSet(componentGetCmd.Flags())
|
||||
|
||||
componentCmd.AddCommand(componentGetCmd)
|
||||
componentCmd.AddCommand(componentSetCmd)
|
||||
|
||||
Reference in New Issue
Block a user