Adds a doctest.
authorScott Gasch <[email protected]>
Sun, 5 Mar 2023 02:28:00 +0000 (18:28 -0800)
committerScott Gasch <[email protected]>
Sun, 5 Mar 2023 02:28:00 +0000 (18:28 -0800)
src/pyutils/argparse_utils.py

index 06b9a9c6c2142f940eb5450b420b7891f3a98e55..01c37f54544d376f883992d17eebd2bf5526c8f4 100644 (file)
@@ -493,6 +493,9 @@ def valid_byte_count(txt: str) -> int:
     >>> valid_byte_count("1234567")
     1234567
 
+    >>> valid_byte_count("1M")
+    1048576
+
     >>> valid_byte_count("1.2Gb")
     1288490188