coverage.py: print default values in --help text

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-10-14 07:24:27 +02:00
parent d84a65b07f
commit 91ca37706f
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -86,10 +86,20 @@ def main():
default=0, default=0,
help="exit after first num failures or errors.", help="exit after first num failures or errors.",
) )
parser.add_argument("--mode", metavar="mode", help="only run tests with this mode")
parser.add_argument("--dist", metavar="dist", help="only run tests with this dist")
parser.add_argument( parser.add_argument(
"--variant", metavar="variant", help="only run tests with this variant" "--mode",
metavar="mode",
help=f"only run tests with this mode (Default = {default_mode})",
)
parser.add_argument(
"--dist",
metavar="dist",
help=f"only run tests with this dist (Default = {default_dist})",
)
parser.add_argument(
"--variant",
metavar="variant",
help=f"only run tests with this variant (Default = {default_variant})",
) )
args = parser.parse_args() args = parser.parse_args()