diff options
author | Wolfgang Müller | 2021-05-01 13:16:55 +0200 |
---|---|---|
committer | Wolfgang Müller | 2021-05-01 13:16:55 +0200 |
commit | 60c6ffc224cca6bedfccfe2476d9e7294e6d7253 (patch) | |
tree | 2b9f0ffa50359e0886ed17452fcf0c00bce8db8f | |
parent | 18fcb77f9543efb2a83c4777f8ee6bc2a2b7c002 (diff) | |
download | quarg-60c6ffc224cca6bedfccfe2476d9e7294e6d7253.tar.gz |
actions: Specify where a parse error happened for --around
Previously quarg would simply echo the error message without any
context, making it harder to find exactly which option caused it.
-rw-r--r-- | quarg/actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quarg/actions.py b/quarg/actions.py index 528d515..990327e 100644 --- a/quarg/actions.py +++ b/quarg/actions.py @@ -52,7 +52,7 @@ class ParseAround(argparse.Action): try: hour_range = int(rangespec) except ValueError as err: - errx(err) + errx(f'Error when parsing range for --around: {err}') else: datespec, hour_range = (aroundspec, 12) |