Przeglądaj źródła

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

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>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit 92e7ab78d6546d822dbeff7282feae4a42e6cbb5)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
Raphaël Mélotte 3 miesięcy temu
rodzic
commit
0934ce7321
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      support/scripts/pkg-stats

+ 1 - 1
support/scripts/pkg-stats

@@ -1276,7 +1276,7 @@ def parse_args():
     parser.add_argument('--nvd-path', dest='nvd_path',
     parser.add_argument('--nvd-path', dest='nvd_path',
                         help='Path to the local NVD database', type=resolvepath)
                         help='Path to the local NVD database', type=resolvepath)
     parser.add_argument('--disable', type=list_str,
     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=[])
                         default=[])
     parser.add_argument('-v', '--verbose', dest='verbose', action='store_true',
     parser.add_argument('-v', '--verbose', dest='verbose', action='store_true',
                         help='Increase verbosity')
                         help='Increase verbosity')