summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-02-03 19:37:38 -0800
committerScott Gasch <[email protected]>2022-02-03 19:37:38 -0800
commit76bc42a750b1c4d0ce81179337e47dc08db7b386 (patch)
treea2af0d5a2ac7e018c3eeffca3bf686e5f7100b23
parent1ddc626af0a4d57f217008525bca488fdf5ebe6f (diff)
Make it possible for users of this library to override argparse's
epilog message.
-rw-r--r--config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.py b/config.py
index 22660cc..1ac5cff 100644
--- 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: