diff --git a/src/stratis_cli/_parser/_pool.py b/src/stratis_cli/_parser/_pool.py index e78f41c9d..b9ee86af8 100644 --- a/src/stratis_cli/_parser/_pool.py +++ b/src/stratis_cli/_parser/_pool.py @@ -20,6 +20,9 @@ from argparse import SUPPRESS, ArgumentTypeError from uuid import UUID +# isort: THIRDPARTY +from justbytes import MiB, Range + from .._actions import BindActions, PoolActions from .._constants import ( Clevis, @@ -186,8 +189,10 @@ def _ensure_nat(arg): "Each block is written to this journal " "before being written to its address. " "The size of the journal must be a " - "multiple of 4 KiB." + "multiple of 4 KiB. The default is " + "%(default)s." ), + "default": Range(128, MiB), "type": parse_range, }, ), @@ -198,10 +203,11 @@ def _ensure_nat(arg): "Integrity tag specification defining " "the size of the tag used to store a " "checksum or other value for each " - "block on a device. stratisd chooses " - "a default specification if none is " - "given." + "block on a device. All size " + "specifications are in bits. The " + "default is %(default)s." ), + "default": IntegrityTagSpec.B512, "choices": list(IntegrityTagSpec), "type": IntegrityTagSpec, },