Skip to content

Commit 7f0eb09

Browse files
committed
Show defaults in tool --help messages
1 parent 0f7956f commit 7f0eb09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

zigpy_znp/tools/common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ def setup_parser(description: str) -> argparse.ArgumentParser:
4040
and a positional serial port argument.
4141
"""
4242

43-
parser = CustomArgumentParser(description=description)
43+
parser = CustomArgumentParser(
44+
description=description,
45+
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
46+
)
4447
parser.add_argument(
4548
"-v",
4649
"--verbose",

0 commit comments

Comments
 (0)