Make it possible for users of this library to override argparse's
authorScott Gasch <[email protected]>
Fri, 4 Feb 2022 03:37:38 +0000 (19:37 -0800)
committerScott Gasch <[email protected]>
Fri, 4 Feb 2022 03:37:38 +0000 (19:37 -0800)
epilog message.

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: