From 2d55df3ee82450c7210d197bc6ffffcc7d0192b6 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Sat, 4 Mar 2023 18:28:00 -0800 Subject: [PATCH] Adds a doctest. --- src/pyutils/argparse_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pyutils/argparse_utils.py b/src/pyutils/argparse_utils.py index 06b9a9c..01c37f5 100644 --- a/src/pyutils/argparse_utils.py +++ b/src/pyutils/argparse_utils.py @@ -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 -- 2.47.1