projects
/
pyutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c93ed6d
)
Fix typo.
author
Scott Gasch
<
[email protected]
>
Tue, 13 Jun 2023 04:27:59 +0000
(21:27 -0700)
committer
Scott Gasch
<
[email protected]
>
Tue, 13 Jun 2023 04:27:59 +0000
(21:27 -0700)
src/pyutils/argparse_utils.py
patch
|
blob
|
history
diff --git
a/src/pyutils/argparse_utils.py
b/src/pyutils/argparse_utils.py
index aa48899dd16c2e9e7d2997def4ea2bfcf39aa8c2..fec7d36ecc1a6178735d0559dd7308ac44b76874 100644
(file)
--- a/
src/pyutils/argparse_utils.py
+++ b/
src/pyutils/argparse_utils.py
@@
-452,8
+452,7
@@
def valid_duration(txt: str) -> datetime.timedelta:
txt: data passed to a commandline arg expecting a duration.
Returns:
- The datetime.timedelta described by txt
- on error.
+ The datetime.timedelta described by txt.
Raises:
ArgumentTypeError: parse error (e.g. invalid duration string)