projects
/
pyutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e450b9
)
Adds a doctest.
author
Scott Gasch
<
[email protected]
>
Sun, 5 Mar 2023 02:28:00 +0000
(18:28 -0800)
committer
Scott Gasch
<
[email protected]
>
Sun, 5 Mar 2023 02:28:00 +0000
(18:28 -0800)
src/pyutils/argparse_utils.py
patch
|
blob
|
history
diff --git
a/src/pyutils/argparse_utils.py
b/src/pyutils/argparse_utils.py
index 06b9a9c6c2142f940eb5450b420b7891f3a98e55..01c37f54544d376f883992d17eebd2bf5526c8f4 100644
(file)
--- 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