From 73212e13da76a59df7f25994b2ad48ad066e259f Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Fri, 13 Sep 2024 15:47:53 +0200 Subject: [PATCH] Capitalize GPO for spelling check and fix gpo false positive check Generated documentation should have capitalized GPO for consistency across the doc. However, as gpo is also used as an argument of the config, put it in the allowed list. --- cmd/adsysd/daemon/daemon.go | 2 +- docs/.custom_wordlist.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/adsysd/daemon/daemon.go b/cmd/adsysd/daemon/daemon.go index 936847709..aefa7a582 100644 --- a/cmd/adsysd/daemon/daemon.go +++ b/cmd/adsysd/daemon/daemon.go @@ -165,7 +165,7 @@ func New() *App { err = a.viper.BindPFlag("service_timeout", a.rootCmd.PersistentFlags().Lookup("timeout")) decorate.LogOnError(&err) - a.rootCmd.PersistentFlags().IntP("gpo-list-timeout", "", consts.DefaultGpoListTimeout, gotext.Get("time in seconds for the gpo list. 0 for no timeout.")) + a.rootCmd.PersistentFlags().IntP("gpo-list-timeout", "", consts.DefaultGpoListTimeout, gotext.Get("time in seconds for the GPO list. 0 for no timeout.")) err = a.viper.BindPFlag("gpo_list_timeout", a.rootCmd.PersistentFlags().Lookup("gpo-list-timeout")) decorate.LogOnError(&err) diff --git a/docs/.custom_wordlist.txt b/docs/.custom_wordlist.txt index c8d3cc258..ac081cd62 100644 --- a/docs/.custom_wordlist.txt +++ b/docs/.custom_wordlist.txt @@ -42,6 +42,7 @@ FQDN GDM gdm GPL +gpo GPO gpolist GPOs