From 76bc42a750b1c4d0ce81179337e47dc08db7b386 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Thu, 3 Feb 2022 19:37:38 -0800 Subject: [PATCH] Make it possible for users of this library to override argparse's epilog message. --- config.py | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.45.2