Skip to content

Commit

Permalink
refactor: Remove periods from flag descriptions for consistency
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Toh <[email protected]>
  • Loading branch information
tohjustin committed Oct 10, 2021
1 parent efdbf1f commit 4232042
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/printers/flags_humanreadable.go
Original file line number Diff line number Diff line change
@@ -78,13 +78,13 @@ func (f *HumanPrintFlags) AddFlags(flags *pflag.FlagSet) {
flags.StringSliceVarP(f.ColumnLabels, flagColumnLabels, flagColumnLabelsShorthand, *f.ColumnLabels, "Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag options like -L label1 -L label2...")
}
if f.NoHeaders != nil {
flags.BoolVar(f.NoHeaders, flagNoHeaders, *f.NoHeaders, "When using the default output format, don't print headers (default print headers).")
flags.BoolVar(f.NoHeaders, flagNoHeaders, *f.NoHeaders, "When using the default output format, don't print headers (default print headers)")
}
if f.ShowLabels != nil {
flags.BoolVar(f.ShowLabels, flagShowLabels, *f.ShowLabels, "When printing, show all labels as the last column (default hide labels column)")
}
if f.ShowGroup != nil {
flags.BoolVar(f.ShowGroup, flagShowGroup, *f.ShowGroup, "If present, include the resource group for the requested object(s).")
flags.BoolVar(f.ShowGroup, flagShowGroup, *f.ShowGroup, "If present, include the resource group for the requested object(s)")
}
}

2 changes: 1 addition & 1 deletion pkg/cmd/helm/flags.go
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ func (f *Flags) Copy() Flags {
// configuration to it.
func (f *Flags) AddFlags(flags *pflag.FlagSet) {
if f.AllNamespaces != nil {
flags.BoolVarP(f.AllNamespaces, flagAllNamespaces, flagAllNamespacesShorthand, *f.AllNamespaces, "If present, list object relationships across all namespaces.")
flags.BoolVarP(f.AllNamespaces, flagAllNamespaces, flagAllNamespacesShorthand, *f.AllNamespaces, "If present, list object relationships across all namespaces")
}
if f.Scopes != nil {
flags.StringSliceVarP(f.Scopes, flagScopes, flagScopesShorthand, *f.Scopes, "Accepts a comma separated list of additional namespaces to find relationships. You can also use multiple flag options like -S namespace1 -S namespace2...")
2 changes: 1 addition & 1 deletion pkg/cmd/lineage/flags.go
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ func (f *Flags) Copy() Flags {
// configuration to it.
func (f *Flags) AddFlags(flags *pflag.FlagSet) {
if f.AllNamespaces != nil {
flags.BoolVarP(f.AllNamespaces, flagAllNamespaces, flagAllNamespacesShorthand, *f.AllNamespaces, "If present, list object relationships across all namespaces.")
flags.BoolVarP(f.AllNamespaces, flagAllNamespaces, flagAllNamespacesShorthand, *f.AllNamespaces, "If present, list object relationships across all namespaces")
}
if f.Scopes != nil {
flags.StringSliceVarP(f.Scopes, flagScopes, flagScopesShorthand, *f.Scopes, "Accepts a comma separated list of additional namespaces to find relationships. You can also use multiple flag options like -S namespace1 -S namespace2...")

0 comments on commit 4232042

Please sign in to comment.