Merge pull request #111486 from peizhouyu/fix-apply-help-text

fix that beginning of help text is cut off for apply and replace --filename flag
This commit is contained in:
Kubernetes Prow Robot 2022-08-01 07:50:52 -07:00 committed by GitHub
commit bddb4ec08e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ func NewApplyFlags(f cmdutil.Factory, streams genericclioptions.IOStreams) *Appl
return &ApplyFlags{
Factory: f,
RecordFlags: genericclioptions.NewRecordFlags(),
DeleteFlags: delete.NewDeleteFlags("that contains the configuration to apply"),
DeleteFlags: delete.NewDeleteFlags("The files that contain the configurations to apply."),
PrintFlags: genericclioptions.NewPrintFlags("created").WithTypeSetter(scheme.Scheme),
Overwrite: true,

View File

@ -106,7 +106,7 @@ type ReplaceOptions struct {
func NewReplaceOptions(streams genericclioptions.IOStreams) *ReplaceOptions {
return &ReplaceOptions{
PrintFlags: genericclioptions.NewPrintFlags("replaced"),
DeleteFlags: delete.NewDeleteFlags("to use to replace the resource."),
DeleteFlags: delete.NewDeleteFlags("The files that contain the configurations to replace."),
IOStreams: streams,
}