Skip to content

Commit 2fa25e0

Browse files
committed
drop choices interpolation in docstrings
1 parent 71341f7 commit 2fa25e0

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

software/glasgow/applet/sensor/qmc5883p/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,8 @@ def add_interact_arguments(cls, parser) -> None:
514514
metavar="MODE",
515515
choices=mode_names.keys(),
516516
default="normal",
517-
help="operating mode (one of: %(choices)s; default: %(default)s)",
517+
help="operating mode (one of: suspend, normal, single, continuous; "
518+
"default: %(default)s)",
518519
)
519520
parser.add_argument(
520521
"-r",
@@ -523,7 +524,7 @@ def add_interact_arguments(cls, parser) -> None:
523524
metavar="RATE",
524525
choices=data_rate_names.keys(),
525526
default=50,
526-
help="output data rate in Hz (one of: %(choices)s; default: %(default)d)",
527+
help="output data rate in Hz (one of: 10, 50, 100, 200; default: %(default)d)",
527528
)
528529
parser.add_argument(
529530
"-o",
@@ -532,7 +533,7 @@ def add_interact_arguments(cls, parser) -> None:
532533
metavar="RATIO",
533534
choices=oversample_ratio_names.keys(),
534535
default=4,
535-
help="oversample ratio (one of: %(choices)s; default: %(default)d)",
536+
help="oversample ratio (one of: 1, 2, 4, 8; default: %(default)d)",
536537
)
537538
parser.add_argument(
538539
"-d",
@@ -541,7 +542,7 @@ def add_interact_arguments(cls, parser) -> None:
541542
metavar="RATIO",
542543
choices=downsample_ratio_names.keys(),
543544
default=2,
544-
help="downsample ratio (one of: %(choices)s; default: %(default)d)",
545+
help="downsample ratio (one of: 1, 2, 4, 8; default: %(default)d)",
545546
)
546547
parser.add_argument(
547548
"-R",
@@ -550,7 +551,7 @@ def add_interact_arguments(cls, parser) -> None:
550551
metavar="GAUSS",
551552
choices=range_names.keys(),
552553
default=8,
553-
help="field range in Gauss (one of: %(choices)s; default: %(default)d)",
554+
help="field range in Gauss (one of: 2, 8, 12, 30; default: %(default)d)",
554555
)
555556

556557
p_operation = parser.add_subparsers(

0 commit comments

Comments
 (0)