Skip to content

Commit 8349ff2

Browse files
committed
follow-cvelist.py: improve help formatting
Separate options with parameters from options without.
1 parent 45b7334 commit 8349ff2

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

bin/follow-cvelist.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -685,30 +685,31 @@ def check_positive(value: str) -> int:
685685
help="each -v increases verbosity (commits, git pull, raw data)",
686686
default=0,
687687
)
688-
argParser.add_argument(
688+
param_group = argParser.add_argument_group("parameters")
689+
param_group.add_argument(
689690
"-i",
690691
"--interval",
691692
type=check_positive,
692693
metavar="s",
693694
help="pull/reload interval in seconds",
694695
default=150,
695696
)
696-
argParser.add_argument(
697+
param_group.add_argument(
697698
"-c",
698699
"--commits",
699700
type=check_positive,
700701
metavar="N",
701702
help="number of commits to print initially",
702703
default=30,
703704
)
704-
argParser.add_argument(
705+
param_group.add_argument(
705706
"-w",
706707
"--width",
707708
type=check_positive,
708709
metavar="N",
709710
help="overwrite autodetected terminal width (<50 => multiline)",
710711
)
711-
argParser.add_argument(
712+
param_group.add_argument(
712713
"-m",
713714
"--cvss-min",
714715
type=float,

0 commit comments

Comments
 (0)