From 91ca37706f1a670f939d9c6154e4b78f5f96512c Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Fri, 14 Oct 2022 07:24:27 +0200 Subject: [PATCH] coverage.py: print default values in --help text --- coverage.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/coverage.py b/coverage.py index ba243b6..b6cf648 100755 --- a/coverage.py +++ b/coverage.py @@ -86,10 +86,20 @@ def main(): default=0, 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( - "--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()