projects
/
python_utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ddc626
)
Make it possible for users of this library to override argparse's
author
Scott Gasch
<
[email protected]
>
Fri, 4 Feb 2022 03:37:38 +0000
(19:37 -0800)
committer
Scott Gasch
<
[email protected]
>
Fri, 4 Feb 2022 03:37:38 +0000
(19:37 -0800)
epilog message.
config.py
patch
|
blob
|
history
diff --git
a/config.py
b/config.py
index 22660cc41c46fc92dba8c32e0caf61c4d5d207c5..1ac5cff30add3fcbd0eb0a03d7361f06515cbbfe 100644
(file)
--- a/
config.py
+++ b/
config.py
@@
-159,6
+159,10
@@
group.add_argument(
)
+def overwrite_argparse_epilog(msg: str) -> None:
+ args.epilog = msg
+
+
def is_flag_already_in_argv(var: str):
"""Is a particular flag passed on the commandline?"""
for _ in sys.argv: