diff mbox series

[1/1] support/scripts/pkg-stats: fix typo in --disable help text

Message ID 20250428210120.1501818-1-raphael.melotte@mind.be
State Accepted
Delegated to: Julien Olivain
Headers show
Series [1/1] support/scripts/pkg-stats: fix typo in --disable help text | expand

Commit Message

Raphaël Mélotte April 28, 2025, 9:01 p.m. UTC
Annoyingly, using "--disable warning" does not disable the warnings
checks.

It turns out that we look for "warnings" (i.e. with an 's') to know if
we should disable the warnings check, so update the help text
accordingly.

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
---
 support/scripts/pkg-stats | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Julien Olivain April 29, 2025, 7:46 p.m. UTC | #1
On 28/04/2025 23:01, Raphaël Mélotte via buildroot wrote:
> Annoyingly, using "--disable warning" does not disable the warnings
> checks.
> 
> It turns out that we look for "warnings" (i.e. with an 's') to know if
> we should disable the warnings check, so update the help text
> accordingly.
> 
> Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>

Applied to master, thanks.
Arnout Vandecappelle May 16, 2025, 10:45 a.m. UTC | #2
On 28/04/2025 23:01, Raphaël Mélotte via buildroot wrote:
> Annoyingly, using "--disable warning" does not disable the warnings
> checks.
> 
> It turns out that we look for "warnings" (i.e. with an 's') to know if
> we should disable the warnings check, so update the help text
> accordingly.
> 
> Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>

  Applied to 2025.02.x, thanks.

  Regards,
  Arnout

> ---
>   support/scripts/pkg-stats | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
> index c134e1ec06..46b12cd992 100755
> --- a/support/scripts/pkg-stats
> +++ b/support/scripts/pkg-stats
> @@ -1276,7 +1276,7 @@ def parse_args():
>       parser.add_argument('--nvd-path', dest='nvd_path',
>                           help='Path to the local NVD database', type=resolvepath)
>       parser.add_argument('--disable', type=list_str,
> -                        help='Features to disable, comma-separated (cve, upstream, url, warning)',
> +                        help='Features to disable, comma-separated (cve, upstream, url, warnings)',
>                           default=[])
>       parser.add_argument('-v', '--verbose', dest='verbose', action='store_true',
>                           help='Increase verbosity')
diff mbox series

Patch

diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index c134e1ec06..46b12cd992 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -1276,7 +1276,7 @@  def parse_args():
     parser.add_argument('--nvd-path', dest='nvd_path',
                         help='Path to the local NVD database', type=resolvepath)
     parser.add_argument('--disable', type=list_str,
-                        help='Features to disable, comma-separated (cve, upstream, url, warning)',
+                        help='Features to disable, comma-separated (cve, upstream, url, warnings)',
                         default=[])
     parser.add_argument('-v', '--verbose', dest='verbose', action='store_true',
                         help='Increase verbosity')